Hello.

Here is that patch again.  Thanks!

--David Grayson


>From 63f1126b246df52e4252d148897f3e262931368b Mon Sep 17 00:00:00 2001
From: David Grayson <[email protected]>
Date: Thu, 16 Mar 2017 19:35:23 -0700
Subject: [PATCH] Use LPCVOID instead of 'const LPVOID' for VerQueryValue.

Apparently "const LPVOID" is different from "LPCVOID".  You can see
the difference for yourself by trying to compile this small bit of C
code:

  #include <windows.h>
  void x(const LPVOID);
  void y(LPCVOID);
  void test() {
    const char * data;
    x(data);
    y(data);
  }
---
 mingw-w64-headers/include/winver.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mingw-w64-headers/include/winver.h 
b/mingw-w64-headers/include/winver.h
index a905c9fe..065f5c06 100644
--- a/mingw-w64-headers/include/winver.h
+++ b/mingw-w64-headers/include/winver.h
@@ -144,8 +144,8 @@ extern "C" {
   WINBOOL WINAPI GetFileVersionInfoW(LPCWSTR lptstrFilename,DWORD 
dwHandle,DWORD dwLen,LPVOID lpData);
   DWORD WINAPI VerLanguageNameA(DWORD wLang,LPSTR szLang,DWORD nSize);
   DWORD WINAPI VerLanguageNameW(DWORD wLang,LPWSTR szLang,DWORD nSize);
-  WINBOOL WINAPI VerQueryValueA(const LPVOID pBlock,LPCSTR lpSubBlock,LPVOID 
*lplpBuffer,PUINT puLen);
-  WINBOOL WINAPI VerQueryValueW(const LPVOID pBlock,LPCWSTR lpSubBlock,LPVOID 
*lplpBuffer,PUINT puLen);
+  WINBOOL WINAPI VerQueryValueA(LPCVOID pBlock,LPCSTR lpSubBlock,LPVOID 
*lplpBuffer,PUINT puLen);
+  WINBOOL WINAPI VerQueryValueW(LPCVOID pBlock,LPCWSTR lpSubBlock,LPVOID 
*lplpBuffer,PUINT puLen);
 #endif
 
 #ifdef __cplusplus
-- 
2.11.1
>From 63f1126b246df52e4252d148897f3e262931368b Mon Sep 17 00:00:00 2001
From: David Grayson <[email protected]>
Date: Thu, 16 Mar 2017 19:35:23 -0700
Subject: [PATCH] Use LPCVOID instead of 'const LPVOID' for VerQueryValue.

Apparently "const LPVOID" is different from "LPCVOID".  You can see
the difference for yourself by trying to compile this small bit of C
code:

  #include <windows.h>
  void x(const LPVOID);
  void y(LPCVOID);
  void test() {
    const char * data;
    x(data);
    y(data);
  }
---
 mingw-w64-headers/include/winver.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mingw-w64-headers/include/winver.h 
b/mingw-w64-headers/include/winver.h
index a905c9fe..065f5c06 100644
--- a/mingw-w64-headers/include/winver.h
+++ b/mingw-w64-headers/include/winver.h
@@ -144,8 +144,8 @@ extern "C" {
   WINBOOL WINAPI GetFileVersionInfoW(LPCWSTR lptstrFilename,DWORD 
dwHandle,DWORD dwLen,LPVOID lpData);
   DWORD WINAPI VerLanguageNameA(DWORD wLang,LPSTR szLang,DWORD nSize);
   DWORD WINAPI VerLanguageNameW(DWORD wLang,LPWSTR szLang,DWORD nSize);
-  WINBOOL WINAPI VerQueryValueA(const LPVOID pBlock,LPCSTR lpSubBlock,LPVOID 
*lplpBuffer,PUINT puLen);
-  WINBOOL WINAPI VerQueryValueW(const LPVOID pBlock,LPCWSTR lpSubBlock,LPVOID 
*lplpBuffer,PUINT puLen);
+  WINBOOL WINAPI VerQueryValueA(LPCVOID pBlock,LPCSTR lpSubBlock,LPVOID 
*lplpBuffer,PUINT puLen);
+  WINBOOL WINAPI VerQueryValueW(LPCVOID pBlock,LPCWSTR lpSubBlock,LPVOID 
*lplpBuffer,PUINT puLen);
 #endif
 
 #ifdef __cplusplus
-- 
2.11.1

------------------------------------------------------------------------------
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