- Timestamp:
- Jun 24, 2001, 4:13:05 PM (24 years ago)
- Location:
- trunk/src/kernel32
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/Fileio.cpp
r5587 r6090 1 /* $Id: Fileio.cpp,v 1. 49 2001-04-26 13:22:42sandervl Exp $ */1 /* $Id: Fileio.cpp,v 1.50 2001-06-24 14:13:03 sandervl Exp $ */ 2 2 3 3 /* … … 281 281 BOOL, arg3) 282 282 { 283 return O 32_CopyFile(arg1, arg2, arg3);283 return OSLibDosCopyFile(arg1, arg2, arg3); 284 284 } 285 285 //****************************************************************************** … … 296 296 astring1 = UnicodeToAsciiString((LPWSTR)arg1); 297 297 astring2 = UnicodeToAsciiString((LPWSTR)arg2); 298 rc = O32_CopyFile(astring1, astring2, arg3);298 rc = CALL_ODINFUNC(CopyFileA)(astring1, astring2, arg3); 299 299 FreeAsciiString(astring2); 300 300 FreeAsciiString(astring1); … … 770 770 nNumberOfBytesToLockHigh)); 771 771 } 772 773 774 775 776 772 //****************************************************************************** 777 773 //****************************************************************************** … … 781 777 { 782 778 dprintf(("KERNEL32: MoveFileA %s %s", arg1, arg2)); 783 return O 32_MoveFile(arg1, arg2);779 return OSLibDosMoveFile(arg1, arg2); 784 780 } 785 781 //****************************************************************************** … … 790 786 DWORD, fdwFlags) 791 787 { 792 dprintf(("KERNEL32: MoveFileExA %s to %s , not complete!\n", arg1, arg2));793 return O 32_MoveFile(arg1, arg2);788 dprintf(("KERNEL32: MoveFileExA %s to %s %x, not complete!\n", arg1, arg2, fdwFlags)); 789 return OSLibDosMoveFile(arg1, arg2); 794 790 } 795 791 //****************************************************************************** … … 804 800 asciisrc = UnicodeToAsciiString((LPWSTR)lpSrc); 805 801 asciidest = UnicodeToAsciiString((LPWSTR)lpDest); 806 rc = O32_MoveFile(asciisrc, asciidest);802 rc = MoveFileA(asciisrc, asciidest); 807 803 FreeAsciiString(asciisrc); 808 804 FreeAsciiString(asciidest); … … 816 812 DWORD, fdwFlags) 817 813 { 818 dprintf(("KERNEL32: MoveFileExW % s to %s, not complete!\n", arg1, arg2));814 dprintf(("KERNEL32: MoveFileExW %ls to %ls %x, not complete!", arg1, arg2, fdwFlags)); 819 815 return MoveFileW(arg1, arg2); 820 816 } -
trunk/src/kernel32/directory.cpp
r5819 r6090 1 /* $Id: directory.cpp,v 1.3 6 2001-05-28 16:23:42 phallerExp $ */1 /* $Id: directory.cpp,v 1.37 2001-06-24 14:13:04 sandervl Exp $ */ 2 2 3 3 /* … … 144 144 int rc; 145 145 146 rc = O32_GetCurrentDirectory(nBufferLength, asciidir);146 rc = CALL_ODINFUNC(GetCurrentDirectoryA)(nBufferLength, asciidir); 147 147 if(rc != 0) 148 148 AsciiToUnicode(asciidir, lpBuffer); … … 507 507 508 508 509 ODINFUNCTION1(BOOL, RemoveDirectoryA, 510 LPCSTR, lpstrDirectory) 509 ODINFUNCTION1(BOOL, RemoveDirectoryA, LPCSTR, lpstrDirectory) 511 510 { 512 511 int len = strlen(lpstrDirectory); 513 512 513 if(lpstrDirectory == NULL) { 514 SetLastError(ERROR_INVALID_PARAMETER); 515 return FALSE; 516 } 514 517 // cut off trailing backslashes 515 518 if ( (lpstrDirectory[len - 1] == '\\') || … … 523 526 } 524 527 525 dprintf(("RemoveDirectory %s", 526 lpstrDirectory)); 527 528 return O32_RemoveDirectory(lpstrDirectory); 528 dprintf(("RemoveDirectory %s", lpstrDirectory)); 529 530 return OSLibDosRemoveDir(lpstrDirectory); 529 531 } 530 532 -
trunk/src/kernel32/heapstring.cpp
r5478 r6090 1 /* $Id: heapstring.cpp,v 1. 39 2001-04-04 14:20:32sandervl Exp $ */1 /* $Id: heapstring.cpp,v 1.40 2001-06-24 14:13:04 sandervl Exp $ */ 2 2 3 3 /* … … 58 58 arg1)); 59 59 60 return O32_lstrlen(arg1);60 return strlen(arg1); 61 61 } 62 62 … … 160 160 return 1; 161 161 162 return O32_lstrcmp(arg1, arg2);162 return strcmp(arg1, arg2); 163 163 } 164 164 … … 428 428 return 1; 429 429 430 return O32_lstrcmpi(arg1, arg2);430 return strcmpi(arg1, arg2); 431 431 } 432 432 -
trunk/src/kernel32/oslibdos.cpp
r6086 r6090 1 /* $Id: oslibdos.cpp,v 1. 69 2001-06-23 19:43:50sandervl Exp $ */1 /* $Id: oslibdos.cpp,v 1.70 2001-06-24 14:13:04 sandervl Exp $ */ 2 2 /* 3 3 * Wrappers for OS/2 Dos* API … … 521 521 522 522 rc = DosClose(hFile); 523 SetLastError(error2WinError(rc)); 524 return (rc == NO_ERROR); 525 } 526 //****************************************************************************** 527 //****************************************************************************** 528 BOOL OSLibDosCopyFile(LPCSTR lpszOldFile, LPCSTR lpszNewFile, BOOL fFailIfExist) 529 { 530 APIRET rc; 531 532 rc = DosCopy((PSZ)lpszOldFile, (PSZ)lpszNewFile, fFailIfExist ? 0: DCPY_EXISTING); 533 SetLastError(error2WinError(rc)); 534 return (rc == NO_ERROR); 535 } 536 //****************************************************************************** 537 //****************************************************************************** 538 BOOL OSLibDosMoveFile(LPCSTR lpszOldFile, LPCSTR lpszNewFile) 539 { 540 APIRET rc; 541 542 rc = DosMove((PSZ)lpszOldFile, (PSZ)lpszNewFile); 543 SetLastError(error2WinError(rc)); 544 return (rc == NO_ERROR); 545 } 546 //****************************************************************************** 547 //****************************************************************************** 548 BOOL OSLibDosRemoveDir(LPCSTR lpszDir) 549 { 550 APIRET rc; 551 552 rc = DosDeleteDir((PSZ)lpszDir); 523 553 SetLastError(error2WinError(rc)); 524 554 return (rc == NO_ERROR); -
trunk/src/kernel32/oslibdos.h
r6053 r6090 1 /* $Id: oslibdos.h,v 1.3 2 2001-06-20 20:51:59sandervl Exp $ */1 /* $Id: oslibdos.h,v 1.33 2001-06-24 14:13:05 sandervl Exp $ */ 2 2 3 3 /* … … 77 77 BOOL OSLibDosClose(DWORD hFile); 78 78 BOOL OSLibDosDelete(char *lpszFileName); 79 BOOL OSLibDosCopyFile(LPCSTR lpszOldFile, LPCSTR lpszNewFile, BOOL fFailIfExist); 80 BOOL OSLibDosMoveFile(LPCSTR lpszOldFile, LPCSTR lpszNewFile); 81 BOOL OSLibDosRemoveDir(LPCSTR lpszDir); 79 82 80 83 #define OSLIB_SETPTR_FILE_CURRENT 0
Note:
See TracChangeset
for help on using the changeset viewer.