Skip to content

Commit e777be2

Browse files
committed
Fixed bool (true) write in LuaJIT x86
1 parent 533b126 commit e777be2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LuaDkmDebuggerComponent/Bytecode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@ bool Failed(string text, out string errorText_)
896896
}
897897
else
898898
{
899-
if (LuaHelpers.luaVersion == 504)
899+
if (LuaHelpers.luaVersion == 504 || LuaHelpers.luaVersion == LuaHelpers.luaVersionLuajit)
900900
{
901901
if (!WriteTypeTag(process, tagAddress, (int)(sourceBool.value ? LuaExtendedType.BooleanTrue : LuaExtendedType.Boolean)))
902902
return Failed("Failed to modify target process memory (tag)", out errorText);

0 commit comments

Comments
 (0)