@@ -269,7 +269,7 @@ static void set_component_path(LPCSTR filename, MSIINSTALLCONTEXT context,
269269 WCHAR guidW [MAX_PATH ];
270270 WCHAR squashedW [MAX_PATH ];
271271 CHAR squashed [MAX_PATH ];
272- CHAR comppath [MAX_PATH ];
272+ CHAR comppath [MAX_PATH + 81 ];
273273 CHAR prodpath [MAX_PATH ];
274274 CHAR path [MAX_PATH ];
275275 LPCSTR prod = NULL ;
@@ -335,7 +335,7 @@ static void delete_component_path(LPCSTR guid, MSIINSTALLCONTEXT context, LPSTR
335335 WCHAR squashedW [MAX_PATH ];
336336 WCHAR substrW [MAX_PATH ];
337337 CHAR squashed [MAX_PATH ];
338- CHAR comppath [MAX_PATH ];
338+ CHAR comppath [MAX_PATH + 81 ];
339339 CHAR prodpath [MAX_PATH ];
340340 REGSAM access = KEY_ALL_ACCESS ;
341341
@@ -1223,7 +1223,7 @@ static void query_file_path(MSIHANDLE hpkg, LPCSTR file, LPSTR buff)
12231223
12241224static void test_settargetpath (void )
12251225{
1226- char tempdir [MAX_PATH + 8 ], buffer [MAX_PATH ], file [MAX_PATH ];
1226+ char tempdir [MAX_PATH + 8 ], buffer [MAX_PATH ], file [MAX_PATH + 20 ];
12271227 DWORD sz ;
12281228 MSIHANDLE hpkg ;
12291229 UINT r ;
@@ -2759,9 +2759,9 @@ static void test_formatrecord2(void)
27592759static void test_formatrecord_tables (void )
27602760{
27612761 MSIHANDLE hdb , hrec , hpkg = 0 ;
2762- CHAR buf [MAX_PATH ];
2762+ CHAR buf [MAX_PATH + 41 ];
27632763 CHAR curr_dir [MAX_PATH ];
2764- CHAR expected [MAX_PATH ];
2764+ CHAR expected [MAX_PATH + 45 ];
27652765 CHAR root [MAX_PATH ];
27662766 DWORD size ;
27672767 UINT r ;
@@ -4142,7 +4142,7 @@ static void test_appsearch(void)
41424142static void test_appsearch_complocator (void )
41434143{
41444144 MSIHANDLE hpkg , hdb ;
4145- char path [MAX_PATH ], expected [MAX_PATH ], prop [MAX_PATH ];
4145+ char path [MAX_PATH + 15 ], expected [MAX_PATH ], prop [MAX_PATH ];
41464146 LPSTR usersid ;
41474147 DWORD size ;
41484148 UINT r ;
@@ -4391,7 +4391,7 @@ static void test_appsearch_complocator(void)
43914391static void test_appsearch_reglocator (void )
43924392{
43934393 MSIHANDLE hpkg , hdb ;
4394- char path [MAX_PATH ], expected [MAX_PATH ], prop [MAX_PATH ];
4394+ char path [MAX_PATH + 20 ], expected [MAX_PATH ], prop [MAX_PATH ];
43954395 DWORD binary [2 ], size , val ;
43964396 BOOL space , version , is_64bit = sizeof (void * ) > sizeof (int );
43974397 HKEY hklm , classes , hkcu , users ;
@@ -4973,7 +4973,7 @@ static void delete_win_ini(LPCSTR file)
49734973static void test_appsearch_inilocator (void )
49744974{
49754975 MSIHANDLE hpkg , hdb ;
4976- char path [MAX_PATH ], expected [MAX_PATH ], prop [MAX_PATH ];
4976+ char path [MAX_PATH + 14 ], expected [MAX_PATH ], prop [MAX_PATH ];
49774977 BOOL version ;
49784978 LPSTR ptr ;
49794979 DWORD size ;
@@ -5210,7 +5210,7 @@ static void search_absolute_directory(LPSTR absolute, LPCSTR relative)
52105210static void test_appsearch_drlocator (void )
52115211{
52125212 MSIHANDLE hpkg , hdb ;
5213- char path [MAX_PATH ], expected [MAX_PATH ], prop [MAX_PATH ];
5213+ char path [MAX_PATH + 27 ], expected [MAX_PATH ], prop [MAX_PATH ];
52145214 BOOL version ;
52155215 DWORD size ;
52165216 UINT r ;
@@ -7968,7 +7968,7 @@ static void test_MsiGetProductProperty(void)
79687968 MSIHANDLE hprod , hdb ;
79697969 CHAR val [MAX_PATH ];
79707970 CHAR path [MAX_PATH ];
7971- CHAR query [MAX_PATH ];
7971+ CHAR query [MAX_PATH + 17 ];
79727972 CHAR keypath [MAX_PATH * 2 ];
79737973 CHAR prodcode [MAX_PATH ];
79747974 WCHAR prodcodeW [MAX_PATH ];
0 commit comments