aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/winmm_output_plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/output/winmm_output_plugin.c')
-rw-r--r--src/output/winmm_output_plugin.c2
1 files changed, 1 insertions, 1 deletions
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 */