mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-14 20:54:16 +01:00
fix: add null check just in case
This commit is contained in:
parent
94d642d1b5
commit
90ed4510aa
1 changed files with 5 additions and 0 deletions
|
|
@ -107,6 +107,11 @@ namespace Dalamud.Game.Internal.Gui
|
||||||
|
|
||||||
private IntPtr HandleToastDetour(IntPtr manager, IntPtr text, int layer, byte bool1, byte bool2, int logMessageId)
|
private IntPtr HandleToastDetour(IntPtr manager, IntPtr text, int layer, byte bool1, byte bool2, int logMessageId)
|
||||||
{
|
{
|
||||||
|
if (text == IntPtr.Zero)
|
||||||
|
{
|
||||||
|
return IntPtr.Zero;
|
||||||
|
}
|
||||||
|
|
||||||
// get the message as an sestring
|
// get the message as an sestring
|
||||||
var bytes = new List<byte>();
|
var bytes = new List<byte>();
|
||||||
unsafe
|
unsafe
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue