From 4ff0a69b65ad320256172009a7f0c2ba8596f612 Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Fri, 18 Oct 2002 00:20:25 +0000 Subject: [PATCH] Removed warning "SetWindowText(0, ...)" when opening new windows. --- programs/winefile/winefile.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/programs/winefile/winefile.c b/programs/winefile/winefile.c index 2ce94a82aca..6bec3932b88 100644 --- a/programs/winefile/winefile.c +++ b/programs/winefile/winefile.c @@ -2344,7 +2344,10 @@ static void set_curdir(ChildWnd* child, Entry* entry) get_path(entry, path); lstrcpy(child->path, path); - SetWindowText(child->hwnd, path); + + if (child->hwnd) /* only change window title, if the window already exists */ + SetWindowText(child->hwnd, path); + SetCurrentDirectory(path); }