Changeset 3694 for trunk/src/kernel32/directory.cpp
- Timestamp:
- Jun 12, 2000, 4:59:38 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/directory.cpp
r3693 r3694 1 /* $Id: directory.cpp,v 1.2 4 2000-06-12 13:03:00phaller Exp $ */1 /* $Id: directory.cpp,v 1.25 2000-06-12 14:59:37 phaller Exp $ */ 2 2 3 3 /* … … 43 43 44 44 ODINDEBUGCHANNEL(KERNEL32-DIRECTORY) 45 46 47 /***************************************************************************** 48 * Local Prototypes * 49 *****************************************************************************/ 45 50 46 51 … … 224 229 225 230 // cut off trailing backslashes 226 if (lpstrDirectory[len - 1] == '\\') 231 if ( (lpstrDirectory[len - 1] == '\\') || 232 (lpstrDirectory[len - 1] == '/') ) 227 233 { 228 234 lstrcpynA(szBuffer, … … 236 242 lpstrDirectory)); 237 243 238 return(O32_CreateDirectory(szBuffer, 244 // PH Note 2000/06/12: 245 // Creation of an existing directory is NO ERROR it seems. 246 DWORD dwAttr = GetFileAttributesA(lpstrDirectory); 247 if (dwAttr != -1) 248 if (dwAttr & FILE_ATTRIBUTE_DIRECTORY) 249 { 250 SetLastError(ERROR_SUCCESS); 251 return TRUE; 252 } 253 254 return(O32_CreateDirectory(lpstrDirectory, 239 255 arg2)); 240 256 } … … 407 423 408 424 // cut off trailing backslashes 409 if (lpstrDirectory[len - 1] == '\\') 425 if ( (lpstrDirectory[len - 1] == '\\') || 426 (lpstrDirectory[len - 1] == '/') ) 410 427 { 411 428 lstrcpynA(szBuffer,
Note:
See TracChangeset
for help on using the changeset viewer.