COMDLG32: fix ofn.nFileOffset when multiple files are selected
Mike McCormack
mike at codeweavers.com
Tue Nov 23 22:05:46 CST 2004
ChangeLog:
* fix ofn.nFileOffset when multiple files are selected
-------------- next part --------------
Index: dlls/commdlg/filedlg.c
===================================================================
RCS file: /home/wine/wine/dlls/commdlg/filedlg.c,v
retrieving revision 1.89
diff -u -r1.89 filedlg.c
--- dlls/commdlg/filedlg.c 19 Oct 2004 23:55:15 -0000 1.89
+++ dlls/commdlg/filedlg.c 24 Nov 2004 04:55:19 -0000
@@ -1650,7 +1650,7 @@
if (ofn->lpstrFile != NULL)
{
- WideCharToMultiByte(CP_ACP, 0, lpstrPathSpec, -1,
+ nSizePath = WideCharToMultiByte(CP_ACP, 0, lpstrPathSpec, -1,
ofn->lpstrFile, ofn->nMaxFile, NULL, NULL);
if (ofn->nMaxFile > nSizePath)
{
@@ -1661,7 +1661,7 @@
}
}
- fodInfos->ofnInfos->nFileOffset = nSizePath + 1;
+ fodInfos->ofnInfos->nFileOffset = nSizePath;
fodInfos->ofnInfos->nFileExtension = 0;
if ( !FILEDLG95_SendFileOK(hwnd, fodInfos) )
More information about the wine-patches
mailing list