解决编译目标为x86的情况下报错
托管调试助手 "PInvokeStackImbalance":“对 PInvoke 函数“HandyControl!HandyControl.Tools.Interop.InteropMethods::GetWindowPlacement”的调用导致堆栈不对称。原因可能是托管的 PInvoke 签名与非托管的目标签名不匹配。请检查 PInvoke 签名的调用约定和参数与非托管的目标签名是否匹配。”
This commit is contained in:
1 parent
8e707a66a9
commit
dc50859cee
1 file changed
+1
-1
@@ -379,7 +379,7 @@ internal class InteropValues
|
||||
get
|
||||
{
|
||||
WINDOWPLACEMENT result = new WINDOWPLACEMENT();
|
||||
result.length = Marshal.SizeOf(result);
|
||||
result.length = Marshal.SizeOf(typeof(WINDOWPLACEMENT);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user