From: DeaDDooMER Date: Thu, 9 Nov 2023 12:27:27 +0000 (+0300) Subject: dfwad: fix error code on resource read X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=e0fc0ed3e766f6b2c339586976198bdf1bbea66d;p=d2df-editor.git dfwad: fix error code on resource read --- diff --git a/src/shared/WADEDITOR_dfwad.pas b/src/shared/WADEDITOR_dfwad.pas index 0fe16f5..b8de439 100644 --- a/src/shared/WADEDITOR_dfwad.pas +++ b/src/shared/WADEDITOR_dfwad.pas @@ -534,6 +534,7 @@ implementation pData := ptr; Len := size; Result := True; + FLastError := DFWAD_NOERROR; except FreeMem(ptr); raise; @@ -547,6 +548,7 @@ implementation pData := ptr; Len := p.data.usize; Result := True; + FLastError := DFWAD_NOERROR; except FreeMem(ptr); raise;