Skip to content

Commit

Permalink
Update IUnknown.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
pwielders authored Nov 9, 2024
1 parent 164371b commit 9c1c896
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions Source/com/IUnknown.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,17 +117,11 @@ namespace ProxyStub {
}
uint32_t UnknownProxy::Id() const
{
uint32_t id = 0;
if (_channel.IsValid() == true) {
const RPC::Communicator::Client* comchannel = dynamic_cast<const RPC::Communicator::Client*>(_channel.operator->());
ASSERT(comchannel != nullptr);
if (comchannel != nullptr) {
const Core::IResource* result = &(comchannel->Source());
ASSERT(result != nullptr);
id = result->Descriptor();
}
}
return (id);
uint32_t id = 0;
if (_channel.IsValid() == true) {
id = _channel->Id();
}
return (id);
}

static class UnknownInstantiation {
Expand Down

0 comments on commit 9c1c896

Please sign in to comment.