Module: wine Branch: refs/heads/master Commit: 04dad6218f64776712653ecdc24126a4d61f0d59 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=04dad6218f64776712653ecd...
Author: Alexandre Julliard julliard@winehq.org Date: Fri Mar 10 21:43:25 2006 +0100
winefile: Refresh the drives and files upon WM_DEVICECHANGE.
---
programs/winefile/winefile.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/programs/winefile/winefile.c b/programs/winefile/winefile.c index afaba10..60deaf2 100644 --- a/programs/winefile/winefile.c +++ b/programs/winefile/winefile.c @@ -2521,6 +2521,10 @@ static LRESULT CALLBACK FrameWndProc(HWN resize_frame(hwnd, LOWORD(lparam), HIWORD(lparam)); break; /* do not pass message to DefFrameProc */
+ case WM_DEVICECHANGE: + SendMessage(hwnd, WM_COMMAND, MAKELONG(ID_REFRESH,0), 0); + break; + #ifndef _NO_EXTENSIONS case WM_GETMINMAXINFO: { LPMINMAXINFO lpmmi = (LPMINMAXINFO)lparam;