X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=rosapps%2Fapplications%2Fwinfile%2Fwinefile.c;h=cdbcefcdd9edb56fbf19f6598edf4381b14ee49b;hp=d2413d1399ac0fcc84a672caee1de5e916e252e5;hb=019895b42e30009824dfa15c8ec50ac678fa7cb8;hpb=f6ca509b096fc236bd2492a23c43b1bc12cd6cb4 diff --git a/rosapps/applications/winfile/winefile.c b/rosapps/applications/winfile/winefile.c index d2413d1399a..cdbcefcdd9e 100644 --- a/rosapps/applications/winfile/winefile.c +++ b/rosapps/applications/winfile/winefile.c @@ -2056,8 +2056,8 @@ static LRESULT CALLBACK FrameWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM switch(nmsg) { case WM_CLOSE: if (Globals.saveSettings) - save_registry_settings(); - + save_registry_settings(); + DestroyWindow(hwnd); /* clear handle variables */ @@ -4278,7 +4278,7 @@ static BOOL show_frame(HWND hwndParent, int cmdshow, LPCWSTR path) WS_CHILD|WS_CLIPCHILDREN|WS_VSCROLL|WS_HSCROLL|WS_VISIBLE|WS_BORDER, 0, 0, 0, 0, Globals.hMainWnd, 0, Globals.hInstance, &ccs); - + CheckMenuItem(Globals.hMenuOptions, ID_VIEW_DRIVE_BAR, MF_BYCOMMAND|MF_CHECKED); CheckMenuItem(Globals.hMenuOptions, ID_VIEW_SAVESETTINGS, MF_BYCOMMAND); @@ -4313,7 +4313,7 @@ static BOOL show_frame(HWND hwndParent, int cmdshow, LPCWSTR path) #ifndef __WINE__ /* Shell Namespace as default: */ - child = alloc_child_window(path, get_path_pidl(path,Globals.hMainWnd), Globals.hMainWnd); + child = alloc_child_window(path, get_path_pidl((LPWSTR)path,Globals.hMainWnd), Globals.hMainWnd); #else child = alloc_child_window(path, NULL, Globals.hMainWnd); #endif