On 6/2/20 9:46 AM, Liu Hao wrote:
在 2020/6/2 4:54, Zebediah Figura 写道:
Signed-off-by: Zebediah Figura <[email protected]>
---
  mingw-w64-headers/ddk/include/ddk/wdm.h | 5 ++---
  1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/mingw-w64-headers/ddk/include/ddk/wdm.h 
b/mingw-w64-headers/ddk/include/ddk/wdm.h
index f54e0a12..e80c9b13 100644
--- a/mingw-w64-headers/ddk/include/ddk/wdm.h
+++ b/mingw-w64-headers/ddk/include/ddk/wdm.h
@@ -1366,9 +1366,8 @@ typedef enum _LOCK_OPERATION {
#define KTIMER_ACTUAL_LENGTH (FIELD_OFFSET(KTIMER, Period) + sizeof(LONG)) -typedef BOOLEAN
-(NTAPI *PKSYNCHRONIZE_ROUTINE)(
-  IN PVOID SynchronizeContext);
+typedef BOOLEAN (NTAPI KSYNCHRONIZE_ROUTINE)(PVOID SynchronizeContext);
+typedef KSYNCHRONIZE_ROUTINE *PKSYNCHRONIZE_ROUTINE;
typedef enum _POOL_TYPE {
    NonPagedPool,


I don't see `NTAPI` in WinSDK headers. Mayby it should be removed?

Likewise for the 4th and 6th patches.



My understanding is that NTAPI is necessary even where not present in Microsoft's headers, in order to add a calling-convention attribute to functions that do not otherwise have it. See e.g. KdDisableDebugger() and PPCI_EXPRESS_ROOT_PORT_WRITE_CONFIG_SPACE, to pick two examples at random.


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

Reply via email to