[PATCH 2/2] Free global blocks after PrintDlg() with PD_RETURNDEFAULT

Nikolay Sivov bunglehead at gmail.com
Fri Jan 1 09:50:45 CST 2010


---
 dlls/comdlg32/tests/printdlg.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/comdlg32/tests/printdlg.c b/dlls/comdlg32/tests/printdlg.c
index 4e189ee..61eefa6 100644
--- a/dlls/comdlg32/tests/printdlg.c
+++ b/dlls/comdlg32/tests/printdlg.c
@@ -323,6 +323,8 @@ static void test_abort_proc(void)
         ok(DeleteFileA(filename), "Failed to delete temporary file\n");
         return;
     }
+    GlobalFree(pd.hDevMode);
+    GlobalFree(pd.hDevNames);
 
     ok(pd.hDC != NULL, "PrintDlg didn't return a DC.\n");
     if (!(print_dc = pd.hDC))
-- 
1.5.6.5


--=-HW7ZjHT2EHs575sTWczf--




More information about the wine-patches mailing list