Skip to contentSkip to conversation

w32: Fix arguments for GetProcessAffinityMask, SetProcessAffinityMask

PATCH In review Stefan Weil 2 participants 2 messages Feb 5, 2011 – Feb 20, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 w32: Fix arguments for GetProcessAffinityMask, SetProcessAffinityMask

These functions take arguments of type PDWORD_PTR which is a pointer to a DWORD_PTR, not a pointer to a DWORD.

Cc Anthony Liguori <[email protected]>
---
 os-win32.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
os-win32.c +1 -1
index 566d5e9..b214e6a 100644
@@ -180,7 +180,7 @@ void os_setup_early_signal_handling(void)
     /* Note: cpu_interrupt() is currently not SMP safe, so we force
        QEMU to run on a single CPU */
     HANDLE h;
-    DWORD mask, smask;
+    DWORD_PTR mask, smask;
     int i;
 
     SetConsoleCtrlHandler(qemu_ctrl_handler, TRUE);
Signature · 1 line
1.7.2.3
#1 lore raw
Quoted 8 lines · Stefan Weil

These functions take arguments of type PDWORD_PTR which is a pointer to a DWORD_PTR, not a pointer to a DWORD.

Cc Anthony Liguori <[email protected]>
---
 os-win32.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Thank, applied.

Quoted 18 lines
os-win32.c +1 -1
index 566d5e9..b214e6a 100644
@@ -180,7 +180,7 @@ void os_setup_early_signal_handling(void)
     /* Note: cpu_interrupt() is currently not SMP safe, so we force
        QEMU to run on a single CPU */
     HANDLE h;
-    DWORD mask, smask;
+    DWORD_PTR mask, smask;
     int i;
 
     SetConsoleCtrlHandler(qemu_ctrl_handler, TRUE);
Signature · 1 line
1.7.2.3
Signature · 2 lines
Aurelien Jarno                          GPG: 1024D/F1BCDB73
[email protected]                 http://www.aurel32.net