1
0
Fork 0
mirror of https://github.com/ocornut/imgui.git synced 2026-01-22 01:54:21 +00:00

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;
}