shell32: Use FAILED instead of !SUCCEEDED.
This commit is contained in:
parent
49cb530ee3
commit
5ab5042183
|
@ -3423,10 +3423,10 @@ static HRESULT get_known_folder_path(
|
|||
{
|
||||
/* get parent's known folder path (recursive) */
|
||||
hr = get_known_folder_registry_path(NULL, parentGuid, &parentRegistryPath);
|
||||
if(!SUCCEEDED(hr)) return hr;
|
||||
if(FAILED(hr)) return hr;
|
||||
|
||||
hr = get_known_folder_path(parentGuid, parentRegistryPath, &parentPath);
|
||||
if(!SUCCEEDED(hr)) {
|
||||
if(FAILED(hr)) {
|
||||
HeapFree(GetProcessHeap(), 0, parentRegistryPath);
|
||||
return hr;
|
||||
}
|
||||
|
|
|
@ -204,7 +204,7 @@ static void test_click_make_new_folder_button(void)
|
|||
test_folder_pathW, MAX_PATH);
|
||||
hr = SHGetDesktopFolder(&test_folder_object);
|
||||
ok (SUCCEEDED(hr), "SHGetDesktopFolder failed with hr 0x%08x\n", hr);
|
||||
if (!SUCCEEDED(hr)) {
|
||||
if (FAILED(hr)) {
|
||||
skip("SHGetDesktopFolder failed - skipping\n");
|
||||
return;
|
||||
}
|
||||
|
@ -331,7 +331,7 @@ static void test_selection(void)
|
|||
|
||||
hr = SHGetDesktopFolder(&desktop_object);
|
||||
ok (SUCCEEDED(hr), "SHGetDesktopFolder failed with hr 0x%08x\n", hr);
|
||||
if (!SUCCEEDED(hr)) {
|
||||
if (FAILED(hr)) {
|
||||
skip("SHGetDesktopFolder failed - skipping\n");
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue