This field seems to have changed since an unknown revision. It was a signed type, up to Windows 8.1 SDK (https://developer.microsoft.com/en-us/windows/downloads/sdk-archive/).




--
Best regards,
LIU Hao
From 007e97fa632fd841bb4ecff393ed320ba9e7398f Mon Sep 17 00:00:00 2001
From: LIU Hao <[email protected]>
Date: Tue, 6 Dec 2022 17:38:30 +0800
Subject: [PATCH] headers/shlwapi: Change `QITAB.dwOffset` to `DWORD` since
 Windows 10

It was an `int` until Windows 8.1.

Signed-off-by: LIU Hao <[email protected]>
---
 mingw-w64-headers/include/shlwapi.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/mingw-w64-headers/include/shlwapi.h b/mingw-w64-headers/include/shlwapi.h
index dc10c2327..1aa32fdd1 100644
--- a/mingw-w64-headers/include/shlwapi.h
+++ b/mingw-w64-headers/include/shlwapi.h
@@ -1177,7 +1177,11 @@ LWSTDAPI PathMatchSpecExW(LPCWSTR pszFile, LPCWSTR pszSpec, DWORD dwFlags);
 
 typedef struct {
   const IID *piid;
+#if (NTDDI_VERSION >= NTDDI_WIN10)
+  DWORD dwOffset;
+#else
   int dwOffset;
+#endif
 } QITAB, *LPQITAB;
 typedef const QITAB *LPCQITAB;
 
-- 
2.34.1

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

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

Reply via email to