Commit 5ab50421 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

shell32: Use FAILED instead of !SUCCEEDED.

parent 49cb530e
......@@ -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;
}
......
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