Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: The signature of **RealGetWindowClass** function is wrong #102

Closed
zenglanmu opened this issue Oct 8, 2019 · 1 comment
Closed
Assignees
Labels
bug Something isn't working Done memory leak

Comments

@zenglanmu
Copy link

for example in Source/Krypton Toolkit Suite Extended/Extended Controls/ExtendedToolkit/Utilities/Classes/WIN32.cs, the signature of RealGetWindowClass is:
public static extern int RealGetWindowClass(IntPtr hwnd, System.Text.StringBuilder pszType, int cchType);

the type of parameter cchType should be uint instead of int, reference:

https://www.pinvoke.net/default.aspx/user32.realgetwindowclass

in my case, this would cause the "PInvokeImbance" warning, then lead to a memory leak bug

@PWagner1
Copy link
Collaborator

PWagner1 commented Oct 8, 2019

Hi @zenglanmu

Thanks for letting me know, will fix straight away!

@PWagner1 PWagner1 transferred this issue from Krypton-Suite-Legacy-Archive/Krypton-Toolkit-Suite-Extended-NET-5.462 Oct 8, 2019
@PWagner1 PWagner1 changed the title the signature of RealGetWindowClass function is wrong The signature of **RealGetWindowClass** function is wrong Oct 8, 2019
@PWagner1 PWagner1 self-assigned this Oct 8, 2019
@PWagner1 PWagner1 added the bug Something isn't working label Oct 8, 2019
@PWagner1 PWagner1 changed the title The signature of **RealGetWindowClass** function is wrong [Bug]: The signature of **RealGetWindowClass** function is wrong Oct 8, 2019
@PWagner1 PWagner1 closed this as completed Nov 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Done memory leak
Projects
None yet
Development

No branches or pull requests

2 participants