[PATCH] user32: for 16-bit DlgDirList(), DDL_EXCLUSIVE should be set only when attrib is equal to DDL_DRIVES, not when the flag is merely contained in the bitmask.

Alex Villacís Lasso a_villacis at palosanto.com
Sun May 31 22:53:00 CDT 2009


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

diff --git a/dlls/user32/dialog16.c b/dlls/user32/dialog16.c
index af7697c..bfc53fb 100644
--- a/dlls/user32/dialog16.c
+++ b/dlls/user32/dialog16.c
@@ -624,7 +624,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 );
 }
 
-- 
1.6.0.6


--------------050808050807020301070706--



More information about the wine-patches mailing list