From dc90db913149f0f71615bd9e07d724d3cccb20e3 Mon Sep 17 00:00:00 2001 From: David Grayson Date: Sun, 30 Apr 2017 07:38:25 -0700 Subject: devcon: Add CALLBACK to DumpDeviceDriversCallback definition. The function is passed to SetupScanFileQueue, which expects it to be a PSP_FILE_CALLBACK. The definition of PSP_FILE_CABLLBACK includes CALLBACK. The definition of CALLBACK usually is __stdcall. This change is needed for compiling devcon with mingw-w64. --- setup/devcon/dump.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'setup') diff --git a/setup/devcon/dump.cpp b/setup/devcon/dump.cpp index fac6ee31..28a71ca7 100644 --- a/setup/devcon/dump.cpp +++ b/setup/devcon/dump.cpp @@ -407,8 +407,7 @@ Return Value: return TRUE; } - -UINT DumpDeviceDriversCallback(_In_ PVOID Context, _In_ UINT Notification, _In_ UINT_PTR Param1, _In_ UINT_PTR Param2) +UINT CALLBACK DumpDeviceDriversCallback(_In_ PVOID Context, _In_ UINT Notification, _In_ UINT_PTR Param1, _In_ UINT_PTR Param2) /*++ Routine Description: -- cgit v1.3.1