mscoree: Ignore empty privatePath.

Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Vincent Povirk 2019-12-05 11:11:54 -06:00 committed by Alexandre Julliard
parent cac0fedd33
commit a391492a96
1 changed files with 1 additions and 1 deletions

View File

@ -1478,7 +1478,7 @@ __int32 WINAPI _CorExeMain(void)
wcscat(config_file, dotconfig);
hr = parse_config_file(config_file, &parsed_config);
if (SUCCEEDED(hr) && parsed_config.private_path)
if (SUCCEEDED(hr) && parsed_config.private_path && parsed_config.private_path[0])
{
for(i = 0; parsed_config.private_path[i] != 0; i++)
if (parsed_config.private_path[i] == ';') number_of_private_paths++;