msi/tests: Increase buffer size a bit.

Spotted by Coverity.
This commit is contained in:
Marcus Meissner 2007-03-28 20:52:08 +02:00 committed by Alexandre Julliard
parent e40af7d3fa
commit c904290336
1 changed files with 2 additions and 2 deletions

View File

@ -1141,7 +1141,7 @@ static void create_cc_test_files(void)
static void delete_cab_files(void) static void delete_cab_files(void)
{ {
SHFILEOPSTRUCT shfl; SHFILEOPSTRUCT shfl;
CHAR path[MAX_PATH]; CHAR path[MAX_PATH+10];
lstrcpyA(path, CURR_DIR); lstrcpyA(path, CURR_DIR);
lstrcatA(path, "\\*.cab"); lstrcatA(path, "\\*.cab");
@ -1149,7 +1149,7 @@ static void delete_cab_files(void)
shfl.hwnd = NULL; shfl.hwnd = NULL;
shfl.wFunc = FO_DELETE; shfl.wFunc = FO_DELETE;
shfl.pFrom = (LPCSTR)path; shfl.pFrom = path;
shfl.pTo = NULL; shfl.pTo = NULL;
shfl.fFlags = FOF_FILESONLY | FOF_NOCONFIRMATION | FOF_NORECURSION | FOF_SILENT; shfl.fFlags = FOF_FILESONLY | FOF_NOCONFIRMATION | FOF_NORECURSION | FOF_SILENT;