Commit d74e446c authored by Bradley Baetz's avatar Bradley Baetz Committed by Alexandre Julliard

Handle mciSendString("open <mcitype>",...)

parent 24b5050a
......@@ -838,6 +838,13 @@ DWORD WINAPI mciSendStringA(LPCSTR lpstrCommand, LPSTR lpstrRet,
dwFlags |= MCI_OPEN_TYPE;
data[2] = (DWORD)devType;
devType = CharUpperA(HEAP_strdupA(GetProcessHeap(), 0, devType));
} else if (strchr(dev, '.') == NULL) {
tmp = strchr(dev,' ');
if (tmp) *tmp = '\0';
data[2] = (DWORD)dev;
devType = CharUpperA(HEAP_strdupA(GetProcessHeap(), 0, dev));
if (tmp) *tmp = ' ';
dwFlags |= MCI_OPEN_TYPE;
} else {
if ((devType = strstr(args, "type ")) != NULL) {
devType += 5;
......
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