Commit 4ff0a69b authored by Martin Fuchs's avatar Martin Fuchs Committed by Alexandre Julliard

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

parent fe7d46a2
...@@ -2344,7 +2344,10 @@ static void set_curdir(ChildWnd* child, Entry* entry) ...@@ -2344,7 +2344,10 @@ static void set_curdir(ChildWnd* child, Entry* entry)
get_path(entry, path); get_path(entry, path);
lstrcpy(child->path, 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); SetCurrentDirectory(path);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment