2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 01:07:43 +00:00

Fix stack related crash in getGlobResults

This commit is contained in:
2017-01-01 15:19:03 -08:00
parent 279b4b1d68
commit c4ee610169
4 changed files with 18 additions and 14 deletions

View File

@@ -164,7 +164,7 @@ bool IsPathPNG(const hecl::ProjectPath& path)
FILE* fp = hecl::Fopen(path.getAbsolutePath().c_str(), _S("rb"));
if (!fp)
return false;
uint32_t buf;
uint32_t buf = 0;
if (fread(&buf, 1, 4, fp) != 4)
{
fclose(fp);
@@ -185,7 +185,7 @@ bool IsPathBlend(const hecl::ProjectPath& path)
FILE* fp = hecl::Fopen(path.getAbsolutePath().c_str(), _S("rb"));
if (!fp)
return false;
uint32_t buf;
uint32_t buf = 0;
if (fread(&buf, 1, 4, fp) != 4)
{
fclose(fp);