Module: wine Branch: master Commit: 6f7d06258392096e15ee72f2cae1d2237852aa63 URL: https://gitlab.winehq.org/wine/wine/-/commit/6f7d06258392096e15ee72f2cae1d22...
Author: Robert Wilhelm robert.wilhelm@gmx.net Date: Wed Aug 17 09:27:59 2022 +0200
wshom: Add test for default style arg in WshShell3_Run.
---
dlls/wshom.ocx/tests/wshom.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)
diff --git a/dlls/wshom.ocx/tests/wshom.c b/dlls/wshom.ocx/tests/wshom.c index 4867843678a..fc27373f296 100644 --- a/dlls/wshom.ocx/tests/wshom.c +++ b/dlls/wshom.ocx/tests/wshom.c @@ -243,9 +243,21 @@ 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);