Michael Stefaniuc : winecfg: Use FAILED instead of !SUCCEEDED.
Alexandre Julliard
julliard at winehq.org
Wed Oct 8 08:33:08 CDT 2008
Module: wine
Branch: master
Commit: 2daee2e4a272bed6fbbafa8f2c702e05088a337f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2daee2e4a272bed6fbbafa8f2c702e05088a337f
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Wed Oct 8 01:34:18 2008 +0200
winecfg: Use FAILED instead of !SUCCEEDED.
---
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);
More information about the wine-cvs
mailing list