Fix typo'd `return;` in non-void method

fixes 672536305
This commit is contained in:
James Groom 2023-10-28 12:12:15 +10:00 committed by GitHub
parent 6725363052
commit ef864536de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1244,7 +1244,7 @@ namespace BizHawk.Client.EmuHawk
return 0;
}
var match = form.Controls().FirstOrDefault(c => c.Handle == ptr);
if (match is null) return;
if (match is null) return default;
if (match is not LuaPictureBox control)
{
LogOutputCallback(ERR_MSG_CONTROL_NOT_LPB);
@ -1278,7 +1278,7 @@ namespace BizHawk.Client.EmuHawk
return 0;
}
var match = form.Controls().FirstOrDefault(c => c.Handle == ptr);
if (match is null) return;
if (match is null) return default;
if (match is not LuaPictureBox control)
{
LogOutputCallback(ERR_MSG_CONTROL_NOT_LPB);