Commit 9dee419b authored by Denis Krjuchkov's avatar Denis Krjuchkov

winmm_output: handle empty string case when parsing device id

parent 7612bf1b
......@@ -81,7 +81,7 @@ get_device_id(const char *device_name)
/* check for device id */
char *endptr;
UINT id = strtoul(device_name, &endptr, 0);
if (*endptr == 0)
if (endptr > device_name && *endptr == 0)
return id;
/* check for device name */
......
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