diff --git a/src/output/winmm_output_plugin.c b/src/output/winmm_output_plugin.c index eea5bdb9e..b9687874d 100644 --- a/src/output/winmm_output_plugin.c +++ b/src/output/winmm_output_plugin.c @@ -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 */