Commit ba2f448d authored by Frédéric Delanoy's avatar Frédéric Delanoy Committed by Alexandre Julliard

shell32: Use BOOL type where appropriate.

parent 30aec559
...@@ -392,7 +392,8 @@ static inline BOOL UNIXFS_is_pidl_of_type(LPCITEMIDLIST pIDL, SHCONTF fFilter) { ...@@ -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) 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; WCHAR wszDrive[] = { '?', ':', '\\', 0 }, dospath[MAX_PATH], *dospath_end;
int cDriveSymlinkLen; int cDriveSymlinkLen;
void *redir; void *redir;
...@@ -423,7 +424,7 @@ static BOOL UNIXFS_get_unix_path(LPCWSTR pszDosPath, char *pszCanonicalPath) ...@@ -423,7 +424,7 @@ static BOOL UNIXFS_get_unix_path(LPCWSTR pszDosPath, char *pszCanonicalPath)
*dospath_end = '/'; *dospath_end = '/';
--dospath_end; --dospath_end;
}else }else
has_failed = 1; has_failed = TRUE;
while(*dospath_end != '\\' && *dospath_end != '/'){ while(*dospath_end != '\\' && *dospath_end != '/'){
--dospath_end; --dospath_end;
if(dospath_end < dospath) if(dospath_end < dospath)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment