winecfg: Use FAILED instead of !SUCCEEDED.
Michael Stefaniuc
mstefani at redhat.de
Tue Oct 7 18:34:18 CDT 2008
---
programs/winecfg/driveui.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/programs/winecfg/driveui.c b/programs/winecfg/driveui.c
index 8c313c1..fb37a20 100644
--- a/programs/winecfg/driveui.c
+++ b/programs/winecfg/driveui.c
@@ -591,11 +591,11 @@ BOOL browse_for_unix_folder(HWND dialog, WCHAR *pszPath)
LoadStringW(GetModuleHandle(NULL), IDS_CHOOSE_PATH, pszChoosePath, FILENAME_MAX);
hr = SHGetDesktopFolder(&pDesktop);
- if (!SUCCEEDED(hr)) return FALSE;
+ if (FAILED(hr)) return FALSE;
hr = IShellFolder_ParseDisplayName(pDesktop, NULL, NULL, wszUnixRootDisplayName, NULL,
&pidlUnixRoot, NULL);
- if (!SUCCEEDED(hr)) {
+ if (FAILED(hr)) {
IShellFolder_Release(pDesktop);
return FALSE;
}
@@ -612,14 +612,14 @@ BOOL browse_for_unix_folder(HWND dialog, WCHAR *pszPath)
hr = IShellFolder_GetDisplayNameOf(pDesktop, pidlSelectedPath, SHGDN_FORPARSING,
&strSelectedPath);
IShellFolder_Release(pDesktop);
- if (!SUCCEEDED(hr)) {
+ if (FAILED(hr)) {
SHFree(pidlSelectedPath);
return FALSE;
}
hr = StrRetToStrW(&strSelectedPath, pidlSelectedPath, &pszSelectedPath);
SHFree(pidlSelectedPath);
- if (!SUCCEEDED(hr)) return FALSE;
+ if (FAILED(hr)) return FALSE;
lstrcpyW(pszPath, pszSelectedPath);
--
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/91d8e976/attachment.pgp
More information about the wine-patches
mailing list