shell32: Use FAILED instead of !SUCCEEDED.

This commit is contained in:
Michael Stefaniuc 2011-07-19 15:06:09 +02:00 committed by Alexandre Julliard
parent 49cb530ee3
commit 5ab5042183
2 changed files with 4 additions and 4 deletions

View File

@ -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;
}

View File

@ -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;
}