From 3221338ca36df71065df5411cf6d1c8716e25ba0 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 9 Apr 2013 14:41:33 +0200 Subject: [PATCH] wineconsole: Fix a pointer cast warning. --- programs/wineconsole/wineconsole.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/wineconsole/wineconsole.c b/programs/wineconsole/wineconsole.c index bda69a4bf5c..d2987055b7e 100644 --- a/programs/wineconsole/wineconsole.c +++ b/programs/wineconsole/wineconsole.c @@ -760,7 +760,7 @@ static UINT WINECON_ParseOptions(const char* lpCmdLine, struct wc_init* wci) if (strncmp(wci->ptr, "--use-event=", 12) == 0) { char* end; - wci->event = (HANDLE)strtol(wci->ptr + 12, &end, 10); + wci->event = ULongToHandle( strtoul(wci->ptr + 12, &end, 10) ); if (end == wci->ptr + 12) return IDS_CMD_INVALID_EVENT_ID; wci->mode = from_event; wci->ptr = end;