Hi,
I would like to contribute a minor patch (attached) to fix
RegSetKeyValueW declaration in winreg.h.
I'm not familiar with the process of submitting patches, so please let
me know if I need to do something else as well.
Best regards,
Michał.

-- 
Michal Janiszewski
From 19e04a932735fc9b18e8627b59334a1fbb57c61d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= <[email protected]>
Date: Wed, 8 Mar 2017 09:15:53 +0100
Subject: [PATCH] winreg.h: Fix declaration of RegSetKeyValueW
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Michał Janiszewski <[email protected]>
---
 mingw-w64-headers/include/winreg.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mingw-w64-headers/include/winreg.h b/mingw-w64-headers/include/winreg.h
index 61b9b3b..c7caec8 100644
--- a/mingw-w64-headers/include/winreg.h
+++ b/mingw-w64-headers/include/winreg.h
@@ -370,8 +370,8 @@ WINADVAPI LONG WINAPI RegSetKeyValueA(
 
 WINADVAPI LONG WINAPI RegSetKeyValueW(
   HKEY hKey,
-  LPCSTR lpSubKey,
-  LPCSTR lpValueName,
+  LPCWSTR lpSubKey,
+  LPCWSTR lpValueName,
   DWORD dwType,
   LPCVOID lpData,
   DWORD cbData
-- 
2.5.5

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to