Huw Davies : commdlg: Set the nt40 version size.

Alexandre Julliard julliard at winehq.org
Fri Sep 21 14:22:40 CDT 2012


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

Author: Huw Davies <huw at codeweavers.com>
Date:   Fri Sep 21 13:22:48 2012 +0100

commdlg: Set the nt40 version size.

---

 dlls/commdlg.dll16/filedlg.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/commdlg.dll16/filedlg.c b/dlls/commdlg.dll16/filedlg.c
index 3de8b90..7e2fda7 100644
--- a/dlls/commdlg.dll16/filedlg.c
+++ b/dlls/commdlg.dll16/filedlg.c
@@ -73,7 +73,7 @@ BOOL16 WINAPI GetOpenFileName16( SEGPTR ofn ) /* [in/out] address of structure w
 
     if (!lpofn) return FALSE;
 
-    ofn32.lStructSize       = sizeof(ofn32);
+    ofn32.lStructSize       = OPENFILENAME_SIZE_VERSION_400A;
     ofn32.hwndOwner         = HWND_32( lpofn->hwndOwner );
     ofn32.lpstrFilter       = MapSL( lpofn->lpstrFilter );
     ofn32.lpstrCustomFilter = MapSL( lpofn->lpstrCustomFilter );
@@ -126,7 +126,7 @@ BOOL16 WINAPI GetSaveFileName16( SEGPTR ofn ) /* [in/out] address of structure w
 
     if (!lpofn) return FALSE;
 
-    ofn32.lStructSize       = sizeof(ofn32);
+    ofn32.lStructSize       = OPENFILENAME_SIZE_VERSION_400A;
     ofn32.hwndOwner         = HWND_32( lpofn->hwndOwner );
     ofn32.lpstrFilter       = MapSL( lpofn->lpstrFilter );
     ofn32.lpstrCustomFilter = MapSL( lpofn->lpstrCustomFilter );




More information about the wine-cvs mailing list