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
The docs mention that the third parameter is the size of the buffer in terms of TCHARS.
Which means that it is more of an element count, than a byte count.
I believe it should be set to MAX_PATH.
The text was updated successfully, but these errors were encountered:
Colosseum/AirLib/src/common/common_utils/FileSystem.cpp
Line 105 in 2383b0a
The third parameter expresses the buffer being larger than it actually is, since the size of
wchar_t
is greater than 1.The function documentation is here.
https://learn.microsoft.com/en-us/windows/win32/api/libloaderapi/nf-libloaderapi-getmodulefilenamea
The docs mention that the third parameter is the size of the buffer in terms of
TCHARS
.Which means that it is more of an element count, than a byte count.
I believe it should be set to
MAX_PATH
.The text was updated successfully, but these errors were encountered: