Removed warning "SetWindowText(0, ...)" when opening new windows.

This commit is contained in:
Martin Fuchs 2002-10-18 00:20:25 +00:00 committed by Alexandre Julliard
parent fe7d46a221
commit 4ff0a69b65
1 changed files with 4 additions and 1 deletions

View File

@ -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);
}