mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 02:22:30 +00:00
fix(command): update ProcessFile to use fixed file API
This commit is contained in:
parent
055fd56c69
commit
d5aff27a9f
1 changed files with 1 additions and 1 deletions
|
|
@ -364,7 +364,7 @@ static int32_t ProcessFile(const char* filename, PROCESSING* processing, CMDDEF*
|
||||||
|
|
||||||
auto size = OsGetFileSize(file);
|
auto size = OsGetFileSize(file);
|
||||||
auto buffer = reinterpret_cast<char*>(SMemAlloc(size + 1, __FILE__, __LINE__, 0));
|
auto buffer = reinterpret_cast<char*>(SMemAlloc(size + 1, __FILE__, __LINE__, 0));
|
||||||
int32_t bytesread;
|
uint32_t bytesread;
|
||||||
OsReadFile(file, buffer, size, &bytesread);
|
OsReadFile(file, buffer, size, &bytesread);
|
||||||
OsCloseFile(file);
|
OsCloseFile(file);
|
||||||
buffer[bytesread] = '\0';
|
buffer[bytesread] = '\0';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue