You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
WindowsDynLib lookup function should pass a C String to GetProcAddress #2435
this should be solved by #265, but in the mean time, i can't think of a correct solution that doesn't require a comptime, an allocator, of the user null-terminating the string themselves.
One thing you can do for now is have a buffer on the stack with, say, 512 bytes. If the length is too big for this return error.NameTooLong or similar. We can always improve this API later.
Activity
emekoi commentedon May 6, 2019
this should be solved by #265, but in the mean time, i can't think of a correct solution that doesn't require a
comptime, an allocator, of the user null-terminating the string themselves.andrewrk commentedon Sep 6, 2019
One thing you can do for now is have a buffer on the stack with, say, 512 bytes. If the length is too big for this return
error.NameTooLongor similar. We can always improve this API later.andrewrk commentedon Jan 5, 2020
Solved with #265 and #2598