fix(command): update ProcessFile to use fixed file API

This commit is contained in:
phaneron 2025-03-16 01:31:39 -04:00
parent 055fd56c69
commit d5aff27a9f

View file

@ -364,7 +364,7 @@ static int32_t ProcessFile(const char* filename, PROCESSING* processing, CMDDEF*
auto size = OsGetFileSize(file);
auto buffer = reinterpret_cast<char*>(SMemAlloc(size + 1, __FILE__, __LINE__, 0));
int32_t bytesread;
uint32_t bytesread;
OsReadFile(file, buffer, size, &bytesread);
OsCloseFile(file);
buffer[bytesread] = '\0';