From 996a4f59654515dfacecc7e946e54086d6594631 Mon Sep 17 00:00:00 2001 From: adelikat Date: Mon, 2 Mar 2009 15:24:50 +0000 Subject: [PATCH] Win32 - Memwatch - fixed a mistake I made in CloseMemoryWatch() --- src/drivers/win/memwatch.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/drivers/win/memwatch.cpp b/src/drivers/win/memwatch.cpp index 0eb850bd..d99fd478 100644 --- a/src/drivers/win/memwatch.cpp +++ b/src/drivers/win/memwatch.cpp @@ -658,6 +658,11 @@ bool CloseMemoryWatch() else return false; //User requested cancel, so abort the attempt to close } + else //File was not changed so just close + { + DestroyWindow(hwndMemWatch); + hwndMemWatch=0; + } } return true; }