summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bin/engine_software_ddraw.cpp2
-rw-r--r--src/bin/engine_software_gdi.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/engine_software_ddraw.cpp b/src/bin/engine_software_ddraw.cpp
index 8cb3bad..c5ceb95 100644
--- a/src/bin/engine_software_ddraw.cpp
+++ b/src/bin/engine_software_ddraw.cpp
@@ -223,7 +223,7 @@ engine_software_ddraw_args(const char *engine, int width, int height)
223 style = GetWindowLong(window, GWL_STYLE); 223 style = GetWindowLong(window, GWL_STYLE);
224 style &= ~WS_THICKFRAME; 224 style &= ~WS_THICKFRAME;
225 if (!SetWindowLong(window, GWL_STYLE, style)) 225 if (!SetWindowLong(window, GWL_STYLE, style))
226 goto unregister_class; 226 goto destroy_window;
227 227
228 dc = GetDC(NULL); 228 dc = GetDC(NULL);
229 if (!dc) 229 if (!dc)
diff --git a/src/bin/engine_software_gdi.c b/src/bin/engine_software_gdi.c
index ecb2754..92218b1 100644
--- a/src/bin/engine_software_gdi.c
+++ b/src/bin/engine_software_gdi.c
@@ -216,7 +216,7 @@ engine_software_gdi_args(const char *engine __UNUSED__, int width, int height)
216 rect.right - rect.left, rect.bottom - rect.top, 216 rect.right - rect.left, rect.bottom - rect.top,
217 NULL, NULL, instance, NULL); 217 NULL, NULL, instance, NULL);
218 if (!window) 218 if (!window)
219 goto unregister_class; 219 goto destroy_window;
220 220
221 /* make the window non resizable */ 221 /* make the window non resizable */
222 style = GetWindowLong(window, GWL_STYLE); 222 style = GetWindowLong(window, GWL_STYLE);