[Bug 48941] Wine's implementation of IMalloc.DidAlloc relies on a spy mechanism, while Windows just calls "HeapValidate"
WineHQ Bugzilla
wine-bugs at winehq.org
Thu Apr 16 08:24:30 CDT 2020
https://bugs.winehq.org/show_bug.cgi?id=48941
--- Comment #2 from Kyle_Katarn <contact at kcsoftwares.com> ---
This is the code section from JCL library JclShell.pas causing the problem :
function PidlFree(var IdList: PItemIdList): Boolean;
var
Malloc: IMalloc;
begin
Result := False;
if IdList = nil then
Result := True
else
begin
Malloc := nil;
if Succeeded(SHGetMalloc(Malloc)) and (Malloc.DidAlloc(IdList) > 0) then
begin
Malloc.Free(IdList);
IdList := nil;
Result := True;
end;
end;
end;
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
More information about the wine-bugs
mailing list