Skip to content

Commit

Permalink
[MsvcDiver] Fix null de-ref when Invoked method returned null
Browse files Browse the repository at this point in the history
  • Loading branch information
theXappy committed Nov 2, 2024
1 parent ef4fb54 commit 2272277
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ScubaDiver/MsvcDiver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,7 @@ protected override string MakeInvokeResponse(ScubaDiverMessage arg)
ObjectOrRemoteAddress returnValue;
if (returnTypeDump == null || results is null or 0)
{
if (returnTypeDump != null)
if (returnTypeDump != null || results == null)
{
// This is a null pointer
returnValue = ObjectOrRemoteAddress.Null;
Expand Down

0 comments on commit 2272277

Please sign in to comment.