Ignore:
Timestamp:
Nov 18, 2006, 12:21:33 PM (19 years ago)
Author:
bird
Message:

cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kLdr/kLdrRdrFile.c

    r2869 r2883  
    4343# include <ntstatus.h>
    4444
    45   /// @todo find a non-conflicting header with NTSTATUS, NTAPI, ++
     45  /** @todo find a non-conflicting header with NTSTATUS, NTAPI, ++ */
    4646  typedef LONG NTSTATUS;
    4747  #define NT_SUCCESS(x) ((x)>=0)
     
    233233static int      kldrRdrFileRefresh(PKLDRRDR pRdr, void *pvBase, uint32_t cSegments, PCKLDRSEG paSegments);
    234234static 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);
     235static int      kldrRdrFileMap(PKLDRRDR pRdr, void **ppvBase, uint32_t cSegments, PCKLDRSEG paSegments, unsigned fFixed);
    236236static int      kldrRdrFileGenericMap(PKLDRRDR pRdr, PKLDRRDRFILEPREP pPrep, uint32_t cSegments, PCKLDRSEG paSegments, unsigned fFixed);
    237237static size_t   kldrRdrFilePageSize(PKLDRRDR pRdr);
     
    683683                ViewSize = paSegments[i].cbFile;
    684684                fPageProt = kldrRdrFileGetNtMapProt(paSegments[i].enmProt);
    685                 // STATUS_MAPPED_ALIGNMENT
    686                 // STATUS_CONFLICTING_ADDRESSES
    687                 // STATUS_INVALID_VIEW_SIZE
     685                /* STATUS_MAPPED_ALIGNMENT
     686                  STATUS_CONFLICTING_ADDRESSES
     687                   STATUS_INVALID_VIEW_SIZE */
    688688                Status = NtMapViewOfSection(pPrep->hSection, NtCurrentProcess(),
    689689                                            &pv,
     
    699699                    &&  0/*later*/)
    700700                {
    701                     //ULONG OldPageProt = 0;
    702                     //NtProtectVirtualMemory(NtCurrentProcess(), &pv, &ViewSize, ,
     701                    /*ULONG OldPageProt = 0;
     702                      NtProtectVirtualMemory(NtCurrentProcess(), &pv, &ViewSize, , */
    703703                }
    704704            }
     
    10851085        return rc;
    10861086
    1087     rc = DosQueryPathInfo(pszFilename, FIL_QUERYFULLNAME, szFilename, sizeof(szFilename));
     1087    rc = DosQueryPathInfo((PCSZ)pszFilename, FIL_QUERYFULLNAME, szFilename, sizeof(szFilename));
    10881088    if (rc)
    10891089    {
Note: See TracChangeset for help on using the changeset viewer.