=?UTF-8?Q?Alex=20Villac=C3=ADs=20Lasso=20?=: user.exe16: Fix handling of DDL_DRIVES flag in DlgDirList.

Alexandre Julliard julliard at winehq.org
Thu Sep 13 03:49:16 CDT 2018


Module: wine
Branch: stable
Commit: f28b4536a75879ba01777d9277c7e32e02cb4afb
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=f28b4536a75879ba01777d9277c7e32e02cb4afb

Author: Alex VillacĂ­s Lasso <a_villacis at palosanto.com>
Date:   Mon Jun 25 04:13:40 2018 +0000

user.exe16: Fix handling of DDL_DRIVES flag in DlgDirList.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=18734
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit 0a788caf8b4665d7f56443fc2c6d7790edf9defb)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>

---

 dlls/user.exe16/dialog.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/user.exe16/dialog.c b/dlls/user.exe16/dialog.c
index e5bf7b9..385e859 100644
--- a/dlls/user.exe16/dialog.c
+++ b/dlls/user.exe16/dialog.c
@@ -636,7 +636,7 @@ INT16 WINAPI DlgDirList16( HWND16 hDlg, LPSTR spec, INT16 idLBox,
      * be set automatically (this is different in Win32, and
      * DIALOG_DlgDirList sends Win32 messages to the control,
      * so do it here) */
-    if (attrib & DDL_DRIVES) attrib |= DDL_EXCLUSIVE;
+    if (attrib == DDL_DRIVES) attrib |= DDL_EXCLUSIVE;
     return DlgDirListA( WIN_Handle32(hDlg), spec, idLBox, idStatic, attrib );
 }
 




More information about the wine-cvs mailing list