Commit 62ad0418 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

Fixed null ptr deref introduced in last patch.

parent 102e1f46
......@@ -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) {
......
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