mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-14 20:54:16 +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 ImGuiNET;
|
||||||
using ImGuiScene;
|
using ImGuiScene;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
using PInvoke;
|
||||||
using Serilog;
|
using Serilog;
|
||||||
|
|
||||||
namespace Dalamud.Interface.Internal.Windows
|
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)
|
private int MessageBoxWDetour(IntPtr hwnd, string text, string caption, NativeFunctions.MessageBoxType type)
|
||||||
{
|
{
|
||||||
Log.Information("[DATAHOOK] {0} {1} {2} {3}", hwnd, text, caption, 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()
|
private void DrawServerOpCode()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue