Marcus Meissner : msi/tests: Increase buffer size a bit.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri May 11 07:28:00 CDT 2007
Module: wine
Branch: master
Commit: c90429033608fe9ae815fa36744d5c8d4be18399
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c90429033608fe9ae815fa36744d5c8d4be18399
Author: Marcus Meissner <marcus at jet.franken.de>
Date: Wed Mar 28 20:52:08 2007 +0200
msi/tests: Increase buffer size a bit.
Spotted by Coverity.
---
dlls/msi/tests/install.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/msi/tests/install.c b/dlls/msi/tests/install.c
index b0bccf9..ad4f35a 100644
--- a/dlls/msi/tests/install.c
+++ b/dlls/msi/tests/install.c
@@ -1141,7 +1141,7 @@ static void create_cc_test_files(void)
static void delete_cab_files(void)
{
SHFILEOPSTRUCT shfl;
- CHAR path[MAX_PATH];
+ CHAR path[MAX_PATH+10];
lstrcpyA(path, CURR_DIR);
lstrcatA(path, "\\*.cab");
@@ -1149,7 +1149,7 @@ static void delete_cab_files(void)
shfl.hwnd = NULL;
shfl.wFunc = FO_DELETE;
- shfl.pFrom = (LPCSTR)path;
+ shfl.pFrom = path;
shfl.pTo = NULL;
shfl.fFlags = FOF_FILESONLY | FOF_NOCONFIRMATION | FOF_NORECURSION | FOF_SILENT;
More information about the wine-cvs
mailing list