winmm_output: handle empty string case when parsing device id
This commit is contained in:
parent
7612bf1bfa
commit
9dee419b7c
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user