Skip to content

Commit

Permalink
fixed "IInvokable has no GUID" error on server side when a SOA callba…
Browse files Browse the repository at this point in the history
…ck is released by a client
  • Loading branch information
Arnaud Bouchez committed Sep 1, 2021
1 parent 9f49066 commit 306664d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rest/mormot.rest.server.pas
Expand Up @@ -3090,8 +3090,8 @@ procedure TRestServerUriContext.ExecuteCallback(var Par: PUtf8Char;
fakeid := GetInteger(GetJsonField(Par, Par)); // GetInteger returns a PtrInt
if Par = nil then
Par := @NULCHAR; // allow e.g. '[12345]'
if (fakeid=0) or
(ParamInterfaceInfo=TypeInfo(IInvokable)) then
if (fakeid = 0) or
(ParamInterfaceInfo.Info = TypeInfo(IInvokable)) then
begin
pointer(Obj) := pointer(fakeid); // Obj = IInvokable(fakeid)
exit;
Expand Down

0 comments on commit 306664d

Please sign in to comment.