updated for version 7.0002
diff --git a/src/gui_w32.c b/src/gui_w32.c
index df07953..a3a7ffa 100644
--- a/src/gui_w32.c
+++ b/src/gui_w32.c
@@ -818,9 +818,11 @@
     {
 	if (strstr(buf, title) != NULL)
 	{
-	    /* Found it.  Store the window ref. and quit searching. */
+	    /* Found it.  Store the window ref. and quit searching if MDI
+	     * works. */
 	    vim_parent_hwnd = FindWindowEx(hwnd, NULL, "MDIClient", NULL);
-	    return FALSE;
+	    if (vim_parent_hwnd != NULL)
+		return FALSE;
 	}
     }
     return TRUE;	/* continue searching */