David Hedberg : comdlg32: We only want to check the low word of wparam.

Alexandre Julliard julliard at winehq.org
Fri Apr 1 09:41:05 CDT 2011


Module: wine
Branch: master
Commit: b2575dab623acf5527f20d2d863ae5364fe93837
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b2575dab623acf5527f20d2d863ae5364fe93837

Author: David Hedberg <david.hedberg at gmail.com>
Date:   Fri Apr  1 05:52:27 2011 +0200

comdlg32: We only want to check the low word of wparam.

---

 dlls/comdlg32/itemdlg.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/comdlg32/itemdlg.c b/dlls/comdlg32/itemdlg.c
index 92ea665..0d75c33 100644
--- a/dlls/comdlg32/itemdlg.c
+++ b/dlls/comdlg32/itemdlg.c
@@ -518,7 +518,7 @@ static LRESULT on_command_filetype(FileDialogImpl *This, WPARAM wparam, LPARAM l
 
 static LRESULT on_wm_command(FileDialogImpl *This, WPARAM wparam, LPARAM lparam)
 {
-    switch(wparam)
+    switch(LOWORD(wparam))
     {
     case IDOK:                return on_idok(This);
     case IDCANCEL:            return on_idcancel(This);




More information about the wine-cvs mailing list