From 3ddf9bc5e83d1e2c41966b1dffd0d13fe04be35a Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 14 Feb 2006 06:18:30 +0000 Subject: [PATCH] simplify --- stepmania/src/archutils/Win32/CrashHandlerChild.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/archutils/Win32/CrashHandlerChild.cpp b/stepmania/src/archutils/Win32/CrashHandlerChild.cpp index 69617ca8f8..bec96de68b 100644 --- a/stepmania/src/archutils/Win32/CrashHandlerChild.cpp +++ b/stepmania/src/archutils/Win32/CrashHandlerChild.cpp @@ -126,9 +126,10 @@ namespace VDDebugInfo if( !ReadFile(h, pctx->pRawBlock, dwFileSize, &dwActual, NULL) || dwActual != dwFileSize ) break; + CloseHandle(h); + if( VDDebugInfoInitFromMemory(pctx, pctx->pRawBlock) ) { - CloseHandle(h); return true; } @@ -136,7 +137,6 @@ namespace VDDebugInfo } while(0); VDDebugInfoDeinit(pctx); - CloseHandle(h); return false; }