Browse Source

Fix regression introduced by #109

Geoffrey Horsington 4 years ago
parent
commit
fab7cc2599
1 changed files with 2 additions and 3 deletions
  1. 2 3
      BepInEx/ConsoleUtil/Kon.cs

+ 2 - 3
BepInEx/ConsoleUtil/Kon.cs

@@ -77,10 +77,9 @@ namespace BepInEx.ConsoleUtil
 						if (!consoleScreenBufferInfo)
 						if (!consoleScreenBufferInfo)
 							if (Marshal.GetLastWin32Error() == 6 && !throwOnNoConsole)
 							if (Marshal.GetLastWin32Error() == 6 && !throwOnNoConsole)
 								return default(CONSOLE_SCREEN_BUFFER_INFO);
 								return default(CONSOLE_SCREEN_BUFFER_INFO);
-							
-							succeeded = true;
-						return console_SCREEN_BUFFER_INFO;
 					}
 					}
+					succeeded = true;
+					return console_SCREEN_BUFFER_INFO;
 				}
 				}
 				catch (EntryPointNotFoundException)
 				catch (EntryPointNotFoundException)
 				{
 				{