mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
feat: crash in hook debug
This commit is contained in:
parent
a83b39f60b
commit
ac21bc761f
1 changed files with 10 additions and 1 deletions
|
|
@ -40,6 +40,7 @@ using Dalamud.Utility;
|
|||
using ImGuiNET;
|
||||
using ImGuiScene;
|
||||
using Newtonsoft.Json;
|
||||
using PInvoke;
|
||||
using Serilog;
|
||||
|
||||
namespace Dalamud.Interface.Internal.Windows
|
||||
|
|
@ -354,7 +355,15 @@ namespace Dalamud.Interface.Internal.Windows
|
|||
private int MessageBoxWDetour(IntPtr hwnd, string text, string caption, NativeFunctions.MessageBoxType type)
|
||||
{
|
||||
Log.Information("[DATAHOOK] {0} {1} {2} {3}", hwnd, text, caption, type);
|
||||
return this.messageBoxMinHook.Original(hwnd, text, caption, type);
|
||||
|
||||
var result = this.messageBoxMinHook.Original(hwnd, "Cause Access Violation?", caption, NativeFunctions.MessageBoxType.YesNo);
|
||||
|
||||
if (result == (int)User32.MessageBoxResult.IDYES)
|
||||
{
|
||||
Marshal.ReadByte(IntPtr.Zero);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
private void DrawServerOpCode()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue