a3.4.4 another fix
This commit is contained in:
parent
40f097b896
commit
f01d630b6d
|
@ -310,7 +310,12 @@ hot_directory_set(System_Functions *system, Hot_Directory *hot_directory,
|
||||||
b32 success = copy_checked(&hot_directory->string, str);
|
b32 success = copy_checked(&hot_directory->string, str);
|
||||||
terminate_with_null(&hot_directory->string);
|
terminate_with_null(&hot_directory->string);
|
||||||
if (success){
|
if (success){
|
||||||
system->set_file_list(&hot_directory->file_list, str);
|
if (str.size > 0){
|
||||||
|
system->set_file_list(&hot_directory->file_list, str);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
system->set_file_list(&hot_directory->file_list, make_string((char*)1, 0));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
hot_directory_fixup(hot_directory, working_set);
|
hot_directory_fixup(hot_directory, working_set);
|
||||||
}
|
}
|
||||||
|
|
|
@ -450,9 +450,13 @@ Sys_Set_File_List_Sig(system_set_file_list){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
Win32FreeMemory(file_list->block);
|
if (directory.str == 0){
|
||||||
file_list->block = 0;
|
Win32FreeMemory(file_list->block);
|
||||||
file_list->block_size = 0;
|
file_list->block = 0;
|
||||||
|
file_list->block_size = 0;
|
||||||
|
}
|
||||||
|
file_list->infos = 0;
|
||||||
|
file_list->count = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue