winefile: Use FAILED instead of !SUCCEEDED.
Michael Stefaniuc
mstefani at redhat.de
Tue Oct 7 18:34:27 CDT 2008
---
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)
--
1.6.0.2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20081008/e66e9d0a/attachment.pgp
More information about the wine-patches
mailing list