The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

a/util: Read config files in binary mode to fix on Windows

authored by

Meng Jiao and committed by
Rylie Pavlik
fec1d421 6fddf310

+2 -2
+1 -1
src/xrt/auxiliary/util/u_config_json.c
··· 54 54 return; 55 55 } 56 56 57 - FILE *file = u_file_open_file_in_config_dir(filename, "r"); 57 + FILE *file = u_file_open_file_in_config_dir(filename, "rb"); 58 58 if (file == NULL) { 59 59 return; 60 60 }
+1 -1
src/xrt/auxiliary/util/u_file.c
··· 245 245 char * 246 246 u_file_read_content_from_path(const char *path) 247 247 { 248 - FILE *file = fopen(path, "r"); 248 + FILE *file = fopen(path, "rb"); 249 249 if (file == NULL) { 250 250 return NULL; 251 251 }