Commit 6f7d0625 authored by Robert Wilhelm's avatar Robert Wilhelm Committed by Alexandre Julliard

wshom: Add test for default style arg in WshShell3_Run.

parent b6a7a385
......@@ -243,12 +243,24 @@ static void test_wshshell(void)
ok(retval == 10, "Unexpected retval %d.\n", retval);
SysFreeString(str);
V_VT(&arg) = VT_ERROR;
V_ERROR(&arg) = DISP_E_PARAMNOTFOUND;
V_VT(&arg2) = VT_BOOL;
V_BOOL(&arg2) = VARIANT_TRUE;
retval = 0xdeadbeef;
str = SysAllocString(L"cmd.exe /c rd /s /q c:\\nosuchdir");
hr = IWshShell3_Run(sh3, str, &arg, &arg2, &retval);
todo_wine ok(hr == S_OK, "Unexpected hr %#lx.\n", hr);
todo_wine ok(retval == ERROR_FILE_NOT_FOUND, "Unexpected retval %d.\n", retval);
SysFreeString(str);
V_VT(&arg) = VT_I2;
V_I2(&arg) = 0;
retval = 0xdeadbeef;
str = SysAllocString(L"cmd.exe /c rd /s /q c:\\nosuchdir");
hr = IWshShell3_Run(sh3, str, &arg, &arg2, &retval);
ok(hr == S_OK, "Unexpected hr %#lx.\n", hr);
todo_wine ok(retval == ERROR_FILE_NOT_FOUND, "Unexpected retval %d.\n", retval);
SysFreeString(str);
......
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