mirror of
https://github.com/isledecomp/isle-portable.git
synced 2025-09-27 14:42:51 -04:00
Mostly match MxStreamer::Close
This commit is contained in:
parent
562d6a966e
commit
56687e86fb
@ -79,14 +79,10 @@ MxLong MxStreamer::Close(const char* p_name)
|
|||||||
if (!p_name || !strcmp(p_name, c->GetAtom().GetInternal())) {
|
if (!p_name || !strcmp(p_name, c->GetAtom().GetInternal())) {
|
||||||
m_openStreams.erase(it);
|
m_openStreams.erase(it);
|
||||||
|
|
||||||
if (!c->FUN_100c20d0(ds)) {
|
if (c->FUN_100c20d0(ds))
|
||||||
MxStreamerNotification notif(MXSTREAMER_DELETE_NOTIFY, NULL, c);
|
|
||||||
|
|
||||||
NotificationManager()->Send(this, ¬if);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
delete c;
|
delete c;
|
||||||
}
|
else
|
||||||
|
NotificationManager()->Send(this, &MxStreamerNotification(MXSTREAMER_DELETE_NOTIFY, NULL, c));
|
||||||
|
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user