Ignore:
Timestamp:
Apr 2, 2014, 2:48:54 AM (11 years ago)
Author:
alloc
Message:

Daodan 3.7:

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Daodan/src/Daodan_Patch.c

    r983 r990  
    168168        DDrPatch_MakeJump(&trampoline[pos], (void*)disasm.EIP);
    169169        DDrPatch_NOOP(from, (void*)disasm.EIP - from);
     170
     171        DWORD oldp;
     172        if (!VirtualProtect(trampoline, 40, PAGE_EXECUTE_READWRITE, &oldp)) {
     173                DDrStartupMessage("Daodan: Detour: Could not mark page for trampoline as executable: from address 0x%08x", from);
     174                return (void*)-1;
     175        }
    170176        DDrPatch_MakeJump(from, to);
    171177/*
     
    213219    DDrStartupMessage("");
    214220    DDrStartupMessage("");
    215      */
     221*/
     222
    216223        return trampoline;
    217224}
Note: See TracChangeset for help on using the changeset viewer.