mirror of
https://github.com/libretro/pcsx2.git
synced 2024-12-13 21:28:38 +00:00
Fix missing fclose calls in ZZoglCreate.cpp
This commit is contained in:
parent
3e65c1d0a3
commit
0a35a2fac9
@ -323,7 +323,8 @@ __forceinline bool LoadShadersFromDat()
|
||||
fseek(fres, 0, SEEK_SET);
|
||||
fread(s_lpShaderResources, s, 1, fres);
|
||||
s_lpShaderResources[s] = 0;
|
||||
|
||||
fclose(fres);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -222,6 +222,7 @@ bool ZZshCreateOpenShadersFile() {
|
||||
fseek(fres, 0, SEEK_SET);
|
||||
fread(s_lpShaderResources, s, 1, fres);
|
||||
s_lpShaderResources[s] = 0;
|
||||
fclose(fres);
|
||||
# endif // _WIN32
|
||||
#else // NOT RELEASE_TO_PUBLIC
|
||||
# ifndef _WIN32 // NOT WINDOWS
|
||||
|
@ -274,7 +274,8 @@ __forceinline bool LoadShadersFromDat()
|
||||
fprintf(stderr, "Failed to read ps2hw.dat. Corrupted file?\n");
|
||||
|
||||
s_lpShaderResources[s] = 0;
|
||||
|
||||
fclose(fres);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -224,6 +224,7 @@ bool ZZshCreateOpenShadersFile() {
|
||||
if (fread(s_lpShaderResources, s, 1, fres) == 0)
|
||||
ZZLog::Error_Log("Cannot read ps2hw.dat in working directory.");
|
||||
s_lpShaderResources[s] = 0;
|
||||
fclose(fres);
|
||||
# endif // _WIN32
|
||||
#else // NOT RELEASE_TO_PUBLIC
|
||||
# ifndef _WIN32 // NOT WINDOWS
|
||||
|
Loading…
Reference in New Issue
Block a user