changeset 34993:07b7e8355049

Pass in NULL as handle to parent or owner window. It's counter-intuitive to pass in the handle that is being created, although its value is NULL as well. Patch in part by Stephen Sheldon, sfsheldo gmail com.
author ib
date Wed, 15 Aug 2012 12:10:42 +0000
parents 559fc479b2ef
children b6ac08b94fc3
files gui/win32/gui.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gui/win32/gui.c	Wed Aug 15 00:26:58 2012 +0000
+++ b/gui/win32/gui.c	Wed Aug 15 12:10:42 2012 +0000
@@ -1434,7 +1434,7 @@
 
     hWnd = CreateWindowEx(0, "MPlayer - Video", "MPlayer - Video", style,
                           x, y, rect.right-rect.left, rect.bottom-rect.top,
-                          gui->videowindow, NULL, instance, NULL);
+                          NULL, NULL, instance, NULL);
 
     /* load all the window images */
     window_render(gui, hWnd, hdc, priv, desc, binfo);
@@ -1549,7 +1549,7 @@
 
     hwnd = CreateWindowEx(0, gui->classname, "MPlayer", style,
                           x, y, rect.right-rect.left, rect.bottom-rect.top,
-                          gui->mainwindow, NULL, instance, NULL);
+                          NULL, NULL, instance, NULL);
 
     /* set the systray icon properties */
     nid.cbSize = sizeof(NOTIFYICONDATA);