在 2022/12/6 18:28, Cao GH 写道:
> 
> I checked all SDKs from 10240-16299 in the archive, it is changed in the 
> 15063 SDK.
> That would be _WIN32_WINNT_WIN10_RS2 I belleve.
> 

Yeah that's right. Updated patch attached.



-- 
Best regards,
LIU Hao

From 1294d9bc93400209aa6262f8f5fc7132fb649fd2 Mon Sep 17 00:00:00 2001
From: LIU Hao <[email protected]>
Date: Tue, 6 Dec 2022 17:42:48 +0800
Subject: [PATCH] headers/shlwapi: Change `QITAB.dwOffset` to `DWORD` for
 Windows 10 RS2+

It was an `int` up to Windows 10 RS1 (10.0.14393.0), but has been changed
to `DWORD` since RS2 (10.0.15063.0).

Reported-by: Cao GH <[email protected]>
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..131f56a35 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_RS2)
+  DWORD dwOffset;
+#else
   int dwOffset;
+#endif
 } QITAB, *LPQITAB;
 typedef const QITAB *LPCQITAB;
 
-- 
2.34.1

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

Reply via email to