Changeset 2883 for trunk/kLdr/kLdrRdrFile.c
- Timestamp:
- Nov 18, 2006, 12:21:33 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kLdr/kLdrRdrFile.c
r2869 r2883 43 43 # include <ntstatus.h> 44 44 45 / // @todo find a non-conflicting header with NTSTATUS, NTAPI, ++45 /** @todo find a non-conflicting header with NTSTATUS, NTAPI, ++ */ 46 46 typedef LONG NTSTATUS; 47 47 #define NT_SUCCESS(x) ((x)>=0) … … 233 233 static int kldrRdrFileRefresh(PKLDRRDR pRdr, void *pvBase, uint32_t cSegments, PCKLDRSEG paSegments); 234 234 static int kldrRdrFileGenericRefresh(PKLDRRDR pRdr, PKLDRRDRFILEPREP pPrep, uint32_t cSegments, PCKLDRSEG paSegments); 235 static int kldrRdrFileMap(PKLDRRDR pRdr, void * ppvBase, uint32_t cSegments, PCKLDRSEG paSegments, unsigned fFixed);235 static int kldrRdrFileMap(PKLDRRDR pRdr, void **ppvBase, uint32_t cSegments, PCKLDRSEG paSegments, unsigned fFixed); 236 236 static int kldrRdrFileGenericMap(PKLDRRDR pRdr, PKLDRRDRFILEPREP pPrep, uint32_t cSegments, PCKLDRSEG paSegments, unsigned fFixed); 237 237 static size_t kldrRdrFilePageSize(PKLDRRDR pRdr); … … 683 683 ViewSize = paSegments[i].cbFile; 684 684 fPageProt = kldrRdrFileGetNtMapProt(paSegments[i].enmProt); 685 / /STATUS_MAPPED_ALIGNMENT686 //STATUS_CONFLICTING_ADDRESSES687 // STATUS_INVALID_VIEW_SIZE685 /* STATUS_MAPPED_ALIGNMENT 686 STATUS_CONFLICTING_ADDRESSES 687 STATUS_INVALID_VIEW_SIZE */ 688 688 Status = NtMapViewOfSection(pPrep->hSection, NtCurrentProcess(), 689 689 &pv, … … 699 699 && 0/*later*/) 700 700 { 701 / /ULONG OldPageProt = 0;702 //NtProtectVirtualMemory(NtCurrentProcess(), &pv, &ViewSize, ,701 /*ULONG OldPageProt = 0; 702 NtProtectVirtualMemory(NtCurrentProcess(), &pv, &ViewSize, , */ 703 703 } 704 704 } … … 1085 1085 return rc; 1086 1086 1087 rc = DosQueryPathInfo( pszFilename, FIL_QUERYFULLNAME, szFilename, sizeof(szFilename));1087 rc = DosQueryPathInfo((PCSZ)pszFilename, FIL_QUERYFULLNAME, szFilename, sizeof(szFilename)); 1088 1088 if (rc) 1089 1089 {
Note:
See TracChangeset
for help on using the changeset viewer.