Set native UserPort to NULL when no UserPort on abiv0 side

This avoid double free where first Intuition frees UserPort and then
muimaster frees it, because it set NULL on abiv0 UserPort and exptected
Intuition not to free it.
This commit is contained in:
deadwood 2024-03-25 22:22:05 +01:00
parent 0f68a09f76
commit f28275f6cd
1 changed files with 5 additions and 0 deletions

View File

@ -265,6 +265,11 @@ BOOL abiv0_ModifyIDCMP(struct WindowV0 *window, ULONG flags, struct LibraryV0 *I
winproxy->native->UserPort = msgpproxy->native;
msgpproxy->translate = Intuition_Translate;
}
else
{
winproxy->native->UserPort = NULL;
}
return ModifyIDCMP(winproxy->native, flags);
}
MAKE_PROXY_ARG_2(ModifyIDCMP);