Changeset 2861 for trunk/kLdr/kLdrHlp.c


Ignore:
Timestamp:
Nov 10, 2006, 4:04:42 AM (19 years ago)
Author:
bird
Message:

Put the PE module interpreter thru the wringer and learnt how much the window file mapping API sucks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kLdr/kLdrHlp.c

    r2854 r2861  
    241241
    242242    *ppv = VirtualAlloc(fFixed ? *ppv : NULL, cb, MEM_COMMIT, fProt);
    243     if (*ppv == NULL)
    244     {
    245         rc = GetLastError();
    246         kldrHlpAssert(0);
    247     }
     243    if (*ppv != NULL)
     244        return 0;
     245    rc = GetLastError();
     246    kldrHlpAssert(0);
    248247    return rc;
    249248
Note: See TracChangeset for help on using the changeset viewer.