Patchwork w32: Fix arguments for GetProcessAffinityMask, SetProcessAffinityMask

login
register
mail settings
Submitter Stefan Weil
Date Feb. 5, 2011, 7:59 p.m.
Message ID <1296935989-10812-1-git-send-email-weil@mail.berlios.de>
Download mbox | patch
Permalink /patch/82017/
State Accepted
Headers show

Comments

Stefan Weil - Feb. 5, 2011, 7:59 p.m.
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 <aliguori@us.ibm.com>
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
---
 os-win32.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Aurelien Jarno - Feb. 20, 2011, 5:02 p.m.
On Sat, Feb 05, 2011 at 08:59:49PM +0100, Stefan Weil wrote:
> 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 <aliguori@us.ibm.com>
> Signed-off-by: Stefan Weil <weil@mail.berlios.de>
> ---
>  os-win32.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

Thank, applied.

> diff --git a/os-win32.c b/os-win32.c
> index 566d5e9..b214e6a 100644
> --- a/os-win32.c
> +++ b/os-win32.c
> @@ -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);
> -- 
> 1.7.2.3
> 
> 
>

Patch

diff --git a/os-win32.c b/os-win32.c
index 566d5e9..b214e6a 100644
--- a/os-win32.c
+++ b/os-win32.c
@@ -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);