- Timestamp:
- Jul 29, 2011, 2:30:58 PM (14 years ago)
- Location:
- trunk/src/kernel32
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/oslibdos.cpp
r21674 r21675 810 810 // GetFileAttributesEx() does on Win32 -- instead of returning an error as 811 811 // DosQueryPathInfo() does 812 if (pszOemName[1] == ':' && pszOemName[2] == '\0') 812 int len = strlen(pszOemName); 813 if (len == 2 && pszOemName[1] == ':') 813 814 { 814 815 pszOemName[2] = '\\'; 815 816 pszOemName[3] = '\0'; 816 817 } 817 else 818 { 819 int len = strlen(pszOemName); 820 // note: the below leaves '\' (i.e. the root dir) as is 821 while (len > 1 && (pszOemName[len-1] == '\\' || pszOemName[len-1] == '/')) 822 pszOemName[--len] = '\0'; 818 else if (len > 1 && (len != 3 || pszOemName[1] != ':')) 819 { 820 // note: len > 1 above leaves '\' (i.e. the root dir) as is 821 // and the second condition prevents 'x:\' from being cut 822 while (pszOemName[len-1] == '\\' || pszOemName[len-1] == '/') 823 --len; 824 pszOemName[len] = '\0'; 823 825 } 824 826 -
trunk/src/kernel32/virtual.cpp
r21587 r21675 392 392 } 393 393 394 // The below doesn't seem to be true any longer, at least when it comes to 395 // Odin and Java. Need to do more testing to make sure 396 #if 1 394 397 if(fdwAllocationType & MEM_RESERVE) { 395 398 //SvL: DosRead crashes if memory is initially reserved with write … … 401 404 flag |= PAG_READ|PAG_WRITE; 402 405 } 406 #endif 403 407 404 408 //just do this if other options are used
Note:
See TracChangeset
for help on using the changeset viewer.