Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8.2, 0.8.3, and 0.9

stable shellext: use system PathIsDirectory in IsDirectory

Changeset a83626cf91c4

Parent a8e8e0ebe5af

by Adrian Buehlmann

Changes to one file · Browse files at a83626cf91c4 Showing diff from parent a8e8e0ebe5af Diff from another changeset...

 
8
9
10
 
 
11
12
13
 
150
151
152
153
154
155
156
157
 
158
159
160
 
8
9
10
11
12
13
14
15
 
152
153
154
 
 
 
 
 
155
156
157
158
@@ -8,6 +8,8 @@
 #include <io.h>  #include "FCNTL.H"   +#include "shlwapi.h" +    LPWSTR hf_mbtowc(LPWSTR lpw, LPCSTR lpa, int nChars)  { @@ -150,11 +152,7 @@
   bool IsDirectory(const std::string& filename)  { - DWORD attributes = GetFileAttributesA(filename.c_str()); - if (attributes == INVALID_FILE_ATTRIBUTES) - return false; - - return (attributes & FILE_ATTRIBUTE_DIRECTORY) != 0; + return ::PathIsDirectory(filename.c_str()) != 0;  }