a3.4.4 another fix
This commit is contained in:
parent
40f097b896
commit
f01d630b6d
|
@ -310,8 +310,13 @@ 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){
|
||||
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,10 +450,14 @@ Sys_Set_File_List_Sig(system_set_file_list){
|
|||
}
|
||||
}
|
||||
else{
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
internal
|
||||
|
|
Loading…
Reference in New Issue