- Timestamp:
- Jun 13, 2000, 9:11:37 AM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/Fileio.cpp
r3642 r3697 1 /* $Id: Fileio.cpp,v 1.3 4 2000-06-01 11:28:45 sandervlExp $ */1 /* $Id: Fileio.cpp,v 1.35 2000-06-13 07:11:37 phaller Exp $ */ 2 2 3 3 /* … … 471 471 DWORD, dwMoveMethod) 472 472 { 473 dprintf(("KERNEL32: SetFilePointer(%08xh,%08xh,%08xh,%08xh)\n",474 hFile,475 lDistanceToMove,476 lpDistanceToMoveHigh,477 dwMoveMethod));478 479 473 return(HMSetFilePointer(hFile, 480 474 lDistanceToMove, … … 531 525 LPCWSTR, arg1) 532 526 { 533 DWORD rc; 534 char *astring; 535 536 dprintf(("KERNEL32: GetFileAttributesW\n")); 537 astring = UnicodeToAsciiString((LPWSTR)arg1); 538 rc = ODIN_GetFileAttributesA(astring); 539 FreeAsciiString(astring); 540 return(rc); 527 DWORD rc; 528 char *astring; 529 530 astring = UnicodeToAsciiString((LPWSTR)arg1); 531 rc = ODIN_GetFileAttributesA(astring); 532 FreeAsciiString(astring); 533 return(rc); 541 534 } 542 535 //****************************************************************************** … … 555 548 DWORD, dwFileAttributes) 556 549 { 557 char *asciifile; 558 BOOL rc; 559 560 dprintf(("KERNEL32: SetFileAttributesW\n")); 561 asciifile = UnicodeToAsciiString((LPWSTR)lpFileName); 562 rc = O32_SetFileAttributes(asciifile, dwFileAttributes); 563 FreeAsciiString(asciifile); 564 return(rc); 550 char *asciifile; 551 BOOL rc; 552 553 asciifile = UnicodeToAsciiString((LPWSTR)lpFileName); 554 rc = O32_SetFileAttributes(asciifile, dwFileAttributes); 555 FreeAsciiString(asciifile); 556 return(rc); 565 557 } 566 558 //****************************************************************************** … … 621 613 DWORD, arg5) 622 614 { 623 dprintf(("KERNEL32: LockFile (%08xh,%08xh,%08xh,%08xh,%08xh)\n",624 arg1,625 arg2,626 arg3,627 arg4,628 arg5));629 630 615 return HMLockFile(arg1, 631 616 arg2, … … 661 646 LPOVERLAPPED, lpOverlapped) 662 647 { 663 dprintf(("Kernel32: LockFileEx(%08xh,%08xh,%08xh,%08xh,%08xh,%08xh)\n",664 hFile,665 dwFlags,666 dwReserved,667 nNumberOfBytesToLockLow,668 nNumberOfBytesToLockHigh,669 lpOverlapped));670 671 648 return(HMLockFile(hFile, 672 649 lpOverlapped->Offset, … … 704 681 LPCWSTR, lpDest) 705 682 { 706 char *asciisrc, *asciidest; 707 BOOL rc; 708 709 dprintf(("KERNEL32: MoveFileW\n")); 710 asciisrc = UnicodeToAsciiString((LPWSTR)lpSrc); 711 asciidest = UnicodeToAsciiString((LPWSTR)lpDest); 712 rc = O32_MoveFile(asciisrc, asciidest); 713 FreeAsciiString(asciisrc); 714 FreeAsciiString(asciidest); 715 return(rc); 683 char *asciisrc, *asciidest; 684 BOOL rc; 685 686 asciisrc = UnicodeToAsciiString((LPWSTR)lpSrc); 687 asciidest = UnicodeToAsciiString((LPWSTR)lpDest); 688 rc = O32_MoveFile(asciisrc, asciidest); 689 FreeAsciiString(asciisrc); 690 FreeAsciiString(asciidest); 691 return(rc); 716 692 } 717 693 //****************************************************************************** … … 767 743 DWORD, arg5) 768 744 { 769 dprintf(("KERNEL32: UnlockFile(%08xh,%08xh,%08xh,%08xh,%08xh)\n",770 arg1,771 arg2,772 arg3,773 arg4,774 arg5));775 776 745 return HMUnlockFile(arg1, 777 746 arg2, … … 805 774 LPOVERLAPPED, lpOverlapped) 806 775 { 807 dprintf(("Kernel32: UnlockFileEx(%08xh,%08xh,%08xh,%08xh,%08xh,%08xh)\n",808 hFile,809 dwReserved,810 nNumberOfBytesToLockLow,811 nNumberOfBytesToLockHigh,812 lpOverlapped));813 814 776 return(HMUnlockFileEx(hFile, dwReserved, 815 777 nNumberOfBytesToLockLow, … … 881 843 lpFileSizeHigh)); 882 844 883 /* PH: simply return the standard filesize */845 /* @@@PH: simply return the standard filesize */ 884 846 return 0; 885 847 }
Note:
See TracChangeset
for help on using the changeset viewer.