shell32/tests: Actually test some return values (PVS-Studio).
This commit is contained in:
parent
e87857a521
commit
725662003a
|
@ -2107,6 +2107,7 @@ static void test_knownFolders(void)
|
|||
ok(IsEqualGUID(&folderId, &FOLDERID_Windows)==TRUE, "invalid KNOWNFOLDERID returned\n");
|
||||
|
||||
hr = IKnownFolder_GetPath(folder, 0, &folderPath);
|
||||
ok(hr == S_OK, "failed to get path from known folder: 0x%08x\n", hr);
|
||||
ok(lstrcmpiW(sWinDir, folderPath)==0, "invalid path returned: \"%s\", expected: \"%s\"\n", wine_dbgstr_w(folderPath), wine_dbgstr_w(sWinDir));
|
||||
CoTaskMemFree(folderPath);
|
||||
|
||||
|
|
|
@ -45,6 +45,7 @@ static void test_cbsize(void)
|
|||
nidW.hIcon = LoadIconA(NULL, (LPSTR)IDI_APPLICATION);
|
||||
nidW.uCallbackMessage = WM_USER+17;
|
||||
ret = pShell_NotifyIconW(NIM_ADD, &nidW);
|
||||
ok(ret, "NIM_ADD failed!\n");
|
||||
/* using an invalid cbSize does work */
|
||||
nidW.cbSize = 3;
|
||||
nidW.hWnd = hMainWnd;
|
||||
|
|
Loading…
Reference in New Issue