From 1aa8c8572dbd5408aaa03f14f4118e7847f13311 Mon Sep 17 00:00:00 2001 From: Pavol Marko Date: Sun, 25 Nov 2007 01:22:41 +0000 Subject: [PATCH] I'm tired :) --HG-- branch : hookman_autogen extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/branches/hookman_autogen%40580 --- sourcehook/sh_pagealloc.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sourcehook/sh_pagealloc.h b/sourcehook/sh_pagealloc.h index ee155e5..afabc3d 100644 --- a/sourcehook/sh_pagealloc.h +++ b/sourcehook/sh_pagealloc.h @@ -66,11 +66,11 @@ namespace SourceHook alignBytes %= minAlignment; neededSize += alignBytes; - if (gap_end - gap_begin >= neededSize) + if (gapsize >= neededSize) { - if (gap_end - gap_begin < smallestgap_size) + if (gapsize < smallestgap_size) { - smallestgap_size = gap_end - gap_begin; + smallestgap_size = gapsize; smallestgap_pos = gap_begin; outAlignBytes = alignBytes; }