From e0fc0ed3e766f6b2c339586976198bdf1bbea66d Mon Sep 17 00:00:00 2001 From: DeaDDooMER Date: Thu, 9 Nov 2023 15:27:27 +0300 Subject: [PATCH] dfwad: fix error code on resource read --- src/shared/WADEDITOR_dfwad.pas | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.29.2