Browse Source

Filter false sret detection for valueless type

Brian Fiete 4 years ago
parent
commit
b16f8b303e
1 changed files with 3 additions and 0 deletions
  1. 3 0
      IDEHelper/WinDebugger.cpp

+ 3 - 0
IDEHelper/WinDebugger.cpp

@@ -4137,6 +4137,9 @@ bool WinDebugger::CheckNeedsSRetArgument(DbgType* retType)
 	if (!retType->IsCompositeType())
 		return false;
 
+	if (retType->GetByteCount() == 0)
+		return false;
+
 	//TODO: Change when we change the calling convention
 	if (retType->GetLanguage() == DbgLanguage_Beef)
 		return true;