From 942e1f46498a1c769b438355168c968c8db4a84e Mon Sep 17 00:00:00 2001 From: Brian Palmer Date: Thu, 12 May 2005 03:00:49 +0000 Subject: [PATCH] Remove old DJGPP NTVDM patch files. svn path=/trunk/; revision=15234 --- reactos/boot/freeldr/ntvdmpat.c | 85 --------------------------------- reactos/boot/freeldr/readme | 18 ------- 2 files changed, 103 deletions(-) delete mode 100644 reactos/boot/freeldr/ntvdmpat.c delete mode 100644 reactos/boot/freeldr/readme diff --git a/reactos/boot/freeldr/ntvdmpat.c b/reactos/boot/freeldr/ntvdmpat.c deleted file mode 100644 index 9a66d847d7c..00000000000 --- a/reactos/boot/freeldr/ntvdmpat.c +++ /dev/null @@ -1,85 +0,0 @@ -/* Copyright (C) 2000 CW Sandmann (sandmann@clio.rice.edu) 1206 Braelinn, Sugar Land, TX 77479 */ -#include -#include -#include -#include -#ifdef GO32 -#include -#else -#include -#endif - -char view_only = 0; -const char *client_patch_code; -char buffer[20480]; -unsigned long search_base = 0x4c800L; -int f; - -char oldpatch[] = {0x3b, 0x05, 0xac, 0xe6 }; -char newpatch[] = {0x3b, 0x05, 0x58, 0x5e }; - -void patch_image(char *filename) -{ - int i,size; - - view_only = 0; - f = open(filename, O_RDWR | O_BINARY); - if (f < 0) { - f = open(filename, O_RDONLY | O_BINARY); - if (f < 0) { - perror(filename); - return; - } - view_only = 1; - } - - lseek(f, search_base, SEEK_SET); - size = read(f, buffer, sizeof(buffer)); - - client_patch_code = NULL; - for(i=0; i