From 35c9b8a4b14f7bba70faf735cf97624a8b05983a Mon Sep 17 00:00:00 2001 From: Pavol Marko Date: Sun, 15 Feb 2004 17:55:27 +0000 Subject: [PATCH] small write_file fix --- amxmodx/file.cpp | 1 + amxmodx/msvc/release_win32/amx_mm.dll | Bin 196608 -> 196608 bytes 2 files changed, 1 insertion(+) diff --git a/amxmodx/file.cpp b/amxmodx/file.cpp index 1adcb1a7..ad315957 100755 --- a/amxmodx/file.cpp +++ b/amxmodx/file.cpp @@ -188,6 +188,7 @@ static cell AMX_NATIVE_CALL write_file(AMX *amx, cell *params) /* 3 param */ // now rewrite because file can be now smaller... if ( (pFile = fopen(sFile,"w")) == NULL ){ amx_RaiseError(amx,AMX_ERR_NATIVE); + fclose(pTemp); return 0; } diff --git a/amxmodx/msvc/release_win32/amx_mm.dll b/amxmodx/msvc/release_win32/amx_mm.dll index 47888fa7134843392374cb883f425c8162fa05c6..0a11b023ff0bdd6c09ba22cfc251167964dd0438 100755 GIT binary patch delta 98 zcmZo@;Av>!nec(Rb+i7)&;O6usdl%h$gnUlWN`(&=v(&xf7pwvL!nec&GPEdE_=l@59<-1!{WLOv&vbX|X^ey}UzxfEqWbR{ZMR(!2fnDkjNL0J*ju_y7O^