Ignore:
Timestamp:
Jun 13, 2009, 3:13:36 AM (16 years ago)
Author:
rossy
Message:

almost windowed mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Daodan/src/Daodan_Patch.c

    r346 r351  
    11#include "Daodan_Patch.h"
    22#include <windows.h>
     3#include <stdlib.h>
    34#include <string.h>
    45
     
    102103                return false;
    103104}
     105
     106bool DDrPatch_NOOP(char* dest, unsigned int length)
     107{
     108        DWORD oldp;
     109       
     110        if (VirtualProtect(dest, length, PAGE_EXECUTE_READWRITE, &oldp))
     111        {
     112                memset(dest, 0x90, length);
     113                VirtualProtect(dest, length, oldp, &oldp);
     114                return true;
     115        }
     116        else
     117                return false;
     118}
Note: See TracChangeset for help on using the changeset viewer.