summaryrefslogtreecommitdiffstats
path: root/src/gui_w32.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2004-06-20 12:51:53 +0000
committerBram Moolenaar <Bram@vim.org>2004-06-20 12:51:53 +0000
commit69a7cb473ceae109b61fae9aa04ee0c29afba5d9 (patch)
tree04bd3292cc6c2317842d7a46ae3ab11e9956ed99 /src/gui_w32.c
parented20346f0b81d1d89c22c9616abe8e47b4c17f08 (diff)
updated for version 7.0002v7.0002
Diffstat (limited to 'src/gui_w32.c')
-rw-r--r--src/gui_w32.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui_w32.c b/src/gui_w32.c
index df079538ac..a3a7ffa248 100644
--- a/src/gui_w32.c
+++ b/src/gui_w32.c
@@ -818,9 +818,11 @@ FindWindowTitle(HWND hwnd, LPARAM lParam)
{
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 */