Fix ofn.nFileOffset when multiple files are selected.

This commit is contained in:
Mike McCormack 2004-11-24 18:10:24 +00:00 committed by Alexandre Julliard
parent 9a013cc1cb
commit b5a8779814
1 changed files with 2 additions and 2 deletions

View File

@ -1650,7 +1650,7 @@ BOOL FILEDLG95_OnOpenMultipleFiles(HWND hwnd, LPWSTR lpstrFileList, UINT nFileCo
if (ofn->lpstrFile != NULL) if (ofn->lpstrFile != NULL)
{ {
WideCharToMultiByte(CP_ACP, 0, lpstrPathSpec, -1, nSizePath = WideCharToMultiByte(CP_ACP, 0, lpstrPathSpec, -1,
ofn->lpstrFile, ofn->nMaxFile, NULL, NULL); ofn->lpstrFile, ofn->nMaxFile, NULL, NULL);
if (ofn->nMaxFile > nSizePath) if (ofn->nMaxFile > nSizePath)
{ {
@ -1661,7 +1661,7 @@ BOOL FILEDLG95_OnOpenMultipleFiles(HWND hwnd, LPWSTR lpstrFileList, UINT nFileCo
} }
} }
fodInfos->ofnInfos->nFileOffset = nSizePath + 1; fodInfos->ofnInfos->nFileOffset = nSizePath;
fodInfos->ofnInfos->nFileExtension = 0; fodInfos->ofnInfos->nFileExtension = 0;
if ( !FILEDLG95_SendFileOK(hwnd, fodInfos) ) if ( !FILEDLG95_SendFileOK(hwnd, fodInfos) )