Disable SafeHandles

This commit is contained in:
Haselnussbomber 2025-12-05 19:10:31 +01:00
parent 7cf20fe102
commit d94cacaac3
No known key found for this signature in database
GPG key ID: BB905BB49E7295D1
6 changed files with 28 additions and 22 deletions

View file

@ -263,7 +263,7 @@ public sealed class EntryPoint
var symbolPath = Path.Combine(info.AssetDirectory, "UIRes", "pdb");
var searchPath = $".;{symbolPath}";
var currentProcess = Windows.Win32.PInvoke.GetCurrentProcess_SafeHandle();
var currentProcess = Windows.Win32.PInvoke.GetCurrentProcess();
// Remove any existing Symbol Handler and Init a new one with our search path added
Windows.Win32.PInvoke.SymCleanup(currentProcess);