=?UTF-8?Q?Fr=C3=A9d=C3=A9ric=20Delanoy=20?=: shell32: Use BOOL type where appropriate.

Alexandre Julliard julliard at winehq.org
Tue Oct 1 14:54:26 CDT 2013


Module: wine
Branch: master
Commit: ba2f448db9f4db360d6009837819e947eaf5f57a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ba2f448db9f4db360d6009837819e947eaf5f57a

Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date:   Tue Oct  1 00:06:50 2013 +0200

shell32: Use BOOL type where appropriate.

---

 dlls/shell32/shfldr_unixfs.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/dlls/shell32/shfldr_unixfs.c b/dlls/shell32/shfldr_unixfs.c
index 22a376c..362d4e6 100644
--- a/dlls/shell32/shfldr_unixfs.c
+++ b/dlls/shell32/shfldr_unixfs.c
@@ -392,7 +392,8 @@ static inline BOOL UNIXFS_is_pidl_of_type(LPCITEMIDLIST pIDL, SHCONTF fFilter) {
  */
 static BOOL UNIXFS_get_unix_path(LPCWSTR pszDosPath, char *pszCanonicalPath)
 {
-    char *pPathTail, *pElement, *pCanonicalTail, szPath[FILENAME_MAX], *pszUnixPath, has_failed = 0, mb_path[FILENAME_MAX];
+    char *pPathTail, *pElement, *pCanonicalTail, szPath[FILENAME_MAX], *pszUnixPath, mb_path[FILENAME_MAX];
+    BOOL has_failed = FALSE;
     WCHAR wszDrive[] = { '?', ':', '\\', 0 }, dospath[MAX_PATH], *dospath_end;
     int cDriveSymlinkLen;
     void *redir;
@@ -423,7 +424,7 @@ static BOOL UNIXFS_get_unix_path(LPCWSTR pszDosPath, char *pszCanonicalPath)
             *dospath_end = '/';
             --dospath_end;
         }else
-            has_failed = 1;
+            has_failed = TRUE;
         while(*dospath_end != '\\' && *dospath_end != '/'){
             --dospath_end;
             if(dospath_end < dospath)




More information about the wine-cvs mailing list