Changeset 6511 for trunk/src/kernel32/directory.cpp
- Timestamp:
- Aug 10, 2001, 9:32:30 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/directory.cpp
r6094 r6511 1 /* $Id: directory.cpp,v 1.3 8 2001-06-24 16:40:44sandervl Exp $ */1 /* $Id: directory.cpp,v 1.39 2001-08-10 19:32:26 sandervl Exp $ */ 2 2 3 3 /* … … 38 38 #include "oslibdos.h" 39 39 #include "profile.h" 40 #include "fileio.h" 40 41 41 42 #define DBG_LOCALLOG DBG_directory … … 260 261 // Creation of an existing directory is NO ERROR it seems. 261 262 DWORD dwAttr = GetFileAttributesA(lpstrDirectory); 262 if (dwAttr != -1) 263 if (dwAttr & FILE_ATTRIBUTE_DIRECTORY) 264 { 265 SetLastError(ERROR_SUCCESS); 266 return TRUE; 267 } 268 263 if(dwAttr != -1) 264 { 265 if (dwAttr & FILE_ATTRIBUTE_DIRECTORY) 266 { 267 SetLastError(ERROR_SUCCESS); 268 return TRUE; 269 } 270 } 269 271 return(OSLibDosCreateDirectory(lpstrDirectory)); 270 272 }
Note:
See TracChangeset
for help on using the changeset viewer.