From e87c43f0b8366dfe0a020ca88cb0db48eff9a769 Mon Sep 17 00:00:00 2001 From: avolkov Date: Thu, 29 Dec 2011 15:00:32 +0000 Subject: [PATCH] Still no mid-block variable declaration in VC6. No matter how hard you try, VC6 just won't accept it! :P git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3718 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/libs/graphics/context.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sc2/src/libs/graphics/context.c b/sc2/src/libs/graphics/context.c index 3adda7523..d609deda8 100644 --- a/sc2/src/libs/graphics/context.c +++ b/sc2/src/libs/graphics/context.c @@ -123,6 +123,8 @@ FindContextPtr (CONTEXT context) { BOOLEAN DestroyContext (CONTEXT ContextRef) { + TFB_Image *img; + if (ContextRef == 0) return (FALSE); @@ -139,7 +141,7 @@ DestroyContext (CONTEXT ContextRef) } #endif /* DEBUG */ - TFB_Image *img = ContextRef->FontBacking; + img = ContextRef->FontBacking; if (img) TFB_DrawImage_Delete (img);