removed copypaste
@@ -1879,26 +1879,8 @@ static void onConsoleExportHtmlCommand(Console* console, const char* providedNam
#if defined(__TIC_WINDOWS__)
// Temporary workaround for #1169, because ZIP lib doesn't work with wide filenames,
// we store it the working dir and remove at the end.
- void* data = NULL;
- {
- FILE* file = fopen(HtmlName, "rb");
-
- if(file)
- {
- fseek(file, 0, SEEK_END);
- size = ftell(file);
- fseek(file, 0, SEEK_SET);
-
- data = malloc(size);
-
- if(data)
- fread(data, size, 1, file);
-
- fclose(file);
- }
-
+ void* data = fsReadFile(name, &size);
remove(HtmlName);
- }
#else
void* data = fsLoadRootFile(console->fs, HtmlName, &size);
#endif
