diff --git a/multimedia/mcistring.c b/multimedia/mcistring.c index 3b352d63d92..b5af30e5404 100644 --- a/multimedia/mcistring.c +++ b/multimedia/mcistring.c @@ -2554,11 +2554,13 @@ DWORD WINAPI mciSendString16(LPCSTR lpstrCommand, LPSTR lpstrReturnString, } *dev++ = '\0'; args = strchr(dev, ' '); - if (args != NULL) *args = '\0'; - while (*++args == ' '); if (args != NULL) { char *s; + + *args = '\0'; + while (*++args == ' '); + i = 1;/* nrofkeywords = nrofspaces+1 */ s = args; while ((s = strchr(s, ' ')) != NULL) {