Signed-off-by: Rémi Bernon rbernon@codeweavers.com --- dlls/setupapi/tests/devinst.c | 2 +- dlls/setupapi/tests/install.c | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/dlls/setupapi/tests/devinst.c b/dlls/setupapi/tests/devinst.c index dcfe5cd231e..a9ac0d849f6 100644 --- a/dlls/setupapi/tests/devinst.c +++ b/dlls/setupapi/tests/devinst.c @@ -2315,7 +2315,7 @@ static void test_get_actual_section(void)
static void test_driver_list(void) { - char inf_dir[MAX_PATH], inf_path[MAX_PATH], inf_path2[MAX_PATH]; + char inf_dir[MAX_PATH], inf_path[MAX_PATH + 10], inf_path2[MAX_PATH + 10]; static const char hardware_id[] = "bogus_hardware_id\0"; static const char compat_id[] = "bogus_compat_id\0"; SP_DEVINSTALL_PARAMS_A params = {sizeof(params)}; diff --git a/dlls/setupapi/tests/install.c b/dlls/setupapi/tests/install.c index fd10fd91332..36f29a72548 100644 --- a/dlls/setupapi/tests/install.c +++ b/dlls/setupapi/tests/install.c @@ -330,7 +330,7 @@ static void ok_registry(BOOL expectsuccess) static void test_cmdline(void) { static const char infwithspaces[] = "test file.inf"; - char path[MAX_PATH]; + char path[MAX_PATH + 16]; BOOL ret;
create_inf_file(inffile, cmdline_inf); @@ -366,7 +366,7 @@ static void test_registry(void) { HKEY key; LONG res; - char path[MAX_PATH]; + char path[MAX_PATH + 9]; BOOL ret;
/* First create a registry structure we would like to be deleted */ @@ -396,7 +396,7 @@ static void test_registry(void)
static void test_install_from(void) { - char path[MAX_PATH]; + char path[MAX_PATH + 9]; HINF infhandle; HKEY key; LONG res; @@ -436,7 +436,7 @@ static void test_install_from(void) static void test_install_svc_from(void) { char inf[2048]; - char path[MAX_PATH]; + char path[MAX_PATH + 9]; HINF infhandle; BOOL ret; SC_HANDLE scm_handle, svc_handle; @@ -596,7 +596,7 @@ static void test_driver_install(void) HANDLE handle; SC_HANDLE scm_handle, svc_handle; BOOL ret; - char path[MAX_PATH], windir[MAX_PATH], driver[MAX_PATH]; + char path[MAX_PATH + 9], windir[MAX_PATH], driver[MAX_PATH]; DWORD attrs; /* Minimal stuff needed */ static const char *inf = @@ -665,7 +665,7 @@ static void test_driver_install(void)
static void test_profile_items(void) { - char path[MAX_PATH], commonprogs[MAX_PATH]; + char path[MAX_PATH + 22], commonprogs[MAX_PATH];
static const char *inf = "[Version]\n" @@ -947,7 +947,7 @@ static const char dirid_inf[] = "[Version]\n" static void check_dirid(int dirid, LPCSTR expected) { char buffer[sizeof(dirid_inf)+11]; - char path[MAX_PATH], actual[MAX_PATH]; + char path[MAX_PATH + 9], actual[MAX_PATH]; LONG ret; DWORD size, type; HKEY key; @@ -1027,7 +1027,7 @@ static void test_install_files_queue(void) "[DestinationDirs]\n" "files_section=40000,dst\n";
- char path[MAX_PATH]; + char path[MAX_PATH + 9]; HSPFILEQ queue; void *context; HINF hinf; @@ -1349,7 +1349,7 @@ static void test_install_file(void) "[DestinationDirs]\n" "DefaultDestDir=40000,dst\n";
- char path[MAX_PATH]; + char path[MAX_PATH + 9]; INFCONTEXT infctx; HINF hinf; BOOL ret; @@ -1448,7 +1448,7 @@ static void test_need_media(void) "DefaultDestDir=40000,dst\n";
SP_FILE_COPY_PARAMS_A copy_params = {sizeof(copy_params)}; - char path[MAX_PATH]; + char path[MAX_PATH + 9]; HSPFILEQ queue; HINF hinf; BOOL ret;