From d5aff27a9fb5ea1b0ca68c5a7802f07a2e1d9924 Mon Sep 17 00:00:00 2001 From: superp00t Date: Sun, 16 Mar 2025 01:31:39 -0400 Subject: [PATCH] fix(command): update ProcessFile to use fixed file API --- storm/Command.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storm/Command.cpp b/storm/Command.cpp index ba7c281..11585cf 100644 --- a/storm/Command.cpp +++ b/storm/Command.cpp @@ -364,7 +364,7 @@ static int32_t ProcessFile(const char* filename, PROCESSING* processing, CMDDEF* auto size = OsGetFileSize(file); auto buffer = reinterpret_cast(SMemAlloc(size + 1, __FILE__, __LINE__, 0)); - int32_t bytesread; + uint32_t bytesread; OsReadFile(file, buffer, size, &bytesread); OsCloseFile(file); buffer[bytesread] = '\0';