We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c7d8da commit b561e20Copy full SHA for b561e20
1 file changed
Confuser.Runtime/RefProxy.Strong.cs
@@ -63,7 +63,7 @@ internal static void Initialize(RuntimeFieldHandle field, byte opKey) {
63
code[index++] = (byte)i;
64
65
var mType = mIndex == -1 ? method.DeclaringType : mParams[mIndex].ParameterType;
66
- if (!mType.IsValueType) {
+ if (mType.IsClass && !(mType.IsPointer || mType.IsByRef)) {
67
var cToken = info.GetTokenFor(mType.TypeHandle);
68
code[index++] = 0x74;
69
code[index++] = (byte)cToken;
0 commit comments