ImLoadFileToMemory() default parameters

This commit is contained in:
ocornut
2015-07-21 17:46:49 -06:00
parent 94f085aa3e
commit 7552f48d7b
2 changed files with 3 additions and 2 deletions

View File

@ -1168,7 +1168,8 @@ bool ImLoadFileToMemory(const char* filename, const char* file_open_mode, void**
fclose(f);
*out_file_data = file_data;
*out_file_size = file_size;
if (out_file_size)
*out_file_size = file_size;
return true;
}