According to Microsoft docs (https://learn.microsoft.com/en-us/
windows/win32/api/shlwapi/ns-shlwapi-qitab), dwOffset in QITAB struct
should be a DWORD instead of int.

Also it matches the OFFSETOFCLASS macro which is usually used to
calculate such value.

Signed-off-by: GH Cao <[email protected]>
---
 mingw-w64-headers/include/shlwapi.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mingw-w64-headers/include/shlwapi.h 
b/mingw-w64-headers/include/shlwapi.h
index dc10c2327..bb50dcf70 100644
--- a/mingw-w64-headers/include/shlwapi.h
+++ b/mingw-w64-headers/include/shlwapi.h
@@ -1177,7 +1177,7 @@ LWSTDAPI PathMatchSpecExW(LPCWSTR pszFile, LPCWSTR 
pszSpec, DWORD dwFlags);
 
 typedef struct {
   const IID *piid;
-  int dwOffset;
+  DWORD dwOffset;
 } QITAB, *LPQITAB;
 typedef const QITAB *LPCQITAB;
 
-- 
2.38.1



_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to