a3.4.4 another fix
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);
|
||||
terminate_with_null(&hot_directory->string);
|
||||
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);
|
||||
}
|
||||
|
|
|
@ -450,9 +450,13 @@ Sys_Set_File_List_Sig(system_set_file_list){
|
|||
}
|
||||
}
|
||||
else{
|
||||
Win32FreeMemory(file_list->block);
|
||||
file_list->block = 0;
|
||||
file_list->block_size = 0;
|
||||
if (directory.str == 0){
|
||||
Win32FreeMemory(file_list->block);
|
||||
file_list->block = 0;
|
||||
file_list->block_size = 0;
|
||||
}
|
||||
file_list->infos = 0;
|
||||
file_list->count = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue