avifil32: Fix the character count passed into LoadStringW in AVIBuildFilterW and AVISaveOptionsUpdate.

This commit is contained in:
Rob Shearman 2008-02-25 09:01:39 +00:00 committed by Alexandre Julliard
parent 18d891986d
commit e7173dfa4e
1 changed files with 3 additions and 2 deletions

View File

@ -1148,7 +1148,7 @@ HRESULT WINAPI AVIBuildFilterW(LPWSTR szFilter, LONG cbFilter, BOOL fSaving)
/* add "All files" "*.*" filter if enough space left */
size = LoadStringW(AVIFILE_hModule, IDS_ALLFILES,
szAllFiles, sizeof(szAllFiles)) + 1;
szAllFiles, sizeof(szAllFiles)/sizeof(szAllFiles[0])) + 1;
if (cbFilter > size) {
int i;
@ -1336,7 +1336,8 @@ static void AVISaveOptionsUpdate(HWND hWnd)
}
} else {
LoadStringW(AVIFILE_hModule, IDS_UNCOMPRESSED,
icinfo.szDescription, sizeof(icinfo.szDescription));
icinfo.szDescription,
sizeof(icinfo.szDescription)/sizeof(icinfo.szDescription[0]));
lstrcatW(szFormat, icinfo.szDescription);
}
} else if (sInfo.fccType == streamtypeAUDIO) {