Michael Stefaniuc : winefile: Use FAILED instead of !SUCCEEDED.
Module: wine Branch: master Commit: 163874844b73dae8e0669daf0e545d08fa9f4100 URL: http://source.winehq.org/git/wine.git/?a=commit;h=163874844b73dae8e0669daf0e... Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Wed Oct 8 01:34:27 2008 +0200 winefile: Use FAILED instead of !SUCCEEDED. --- programs/winefile/winefile.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/winefile/winefile.c b/programs/winefile/winefile.c index 93ac0d4..1ae314e 100644 --- a/programs/winefile/winefile.c +++ b/programs/winefile/winefile.c @@ -964,7 +964,7 @@ static Entry* read_tree_shell(Root* root, LPITEMIDLIST pidl, SORT_ORDER sortOrde ((LPITEMIDLIST)((LPBYTE)next_pidl+pidl->mkid.cb))->mkid.cb = 0; hr = IShellFolder_BindToObject(folder, next_pidl, 0, &IID_IShellFolder, (void**)&child); - if (!SUCCEEDED(hr)) + if (FAILED(hr)) break; read_directory(entry, NULL, sortOrder, hwnd); @@ -1070,7 +1070,7 @@ static void read_directory_shell(Entry* dir, HWND hwnd) memset(pidls, 0, sizeof(pidls)); hr = IEnumIDList_Next(idlist, FETCH_ITEM_COUNT, pidls, &cnt); - if (!SUCCEEDED(hr)) + if (FAILED(hr)) break; if (hr == S_FALSE)
participants (1)
-
Alexandre Julliard