janisozaur on IRC reported a bug about `RegSetKeyValueW()` today.
According to MSDN the parameters `lpSubKey` and `lpValueName` of
`RegSetKeyValue()` should have type `LPCTSTR`, hence in the case of
`RegSetKeyValueW()` they should have type `LPCWSTR`. In our headers they
used to have type `LPCSTR`, which seems a typo. This patch fixes that.
--
Best regards,
LH_Mouse
From 3f24514aa25e1db9a924a0a9ff979c1e26d80e02 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= <janisoz...@gmail.com>
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 <janisoz...@gmail.com>
---
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 61b9b3b2..c7caec8b 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.12.0
From 3f24514aa25e1db9a924a0a9ff979c1e26d80e02 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= <janisoz...@gmail.com>
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 <janisoz...@gmail.com>
---
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 61b9b3b2..c7caec8b 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.12.0
------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public