Commit 3221338c authored by Alexandre Julliard's avatar Alexandre Julliard

wineconsole: Fix a pointer cast warning.

parent 24fe3127
...@@ -760,7 +760,7 @@ static UINT WINECON_ParseOptions(const char* lpCmdLine, struct wc_init* wci) ...@@ -760,7 +760,7 @@ static UINT WINECON_ParseOptions(const char* lpCmdLine, struct wc_init* wci)
if (strncmp(wci->ptr, "--use-event=", 12) == 0) if (strncmp(wci->ptr, "--use-event=", 12) == 0)
{ {
char* end; 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; if (end == wci->ptr + 12) return IDS_CMD_INVALID_EVENT_ID;
wci->mode = from_event; wci->mode = from_event;
wci->ptr = end; wci->ptr = end;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment