From a05169748866d8bc0f43ee44e393157c06f02239 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Thu, 2 Aug 2012 03:44:13 +0000 Subject: [PATCH] - Since ZDoom hasn't actually run on Windows 95 in some time, and nobody has complained, remove the IsDebuggerPresent thunk. SVN r3800 (trunk) --- src/win32/wrappers.asm | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 src/win32/wrappers.asm diff --git a/src/win32/wrappers.asm b/src/win32/wrappers.asm deleted file mode 100644 index 6754ff12b..000000000 --- a/src/win32/wrappers.asm +++ /dev/null @@ -1,39 +0,0 @@ -; The Visual C++ CRT unconditionally links to IsDebuggerPresent. -; This function is not available under Windows 95, so here is a -; lowlevel replacement for it. - -extern __imp__GetModuleHandleA@4 -extern __imp__GetProcAddress@8 - - SECTION .data - -global __imp__IsDebuggerPresent@0 -__imp__IsDebuggerPresent@0: - dd IsDebuggerPresent_Check - - SECTION .rdata - -StrKERNEL32: - db "KERNEL32",0 - -StrIsDebuggerPresent: - db "IsDebuggerPresent",0 - - SECTION .text - -IsDebuggerPresent_No: - xor eax,eax - ret - -IsDebuggerPresent_Check: - push StrKERNEL32 - call [__imp__GetModuleHandleA@4] - push StrIsDebuggerPresent - push eax - call [__imp__GetProcAddress@8] - test eax,eax - jne near .itis - mov eax,IsDebuggerPresent_No -.itis: - mov [__imp__IsDebuggerPresent@0],eax - jmp eax