DescriptionPass the size of the array to GetModuleFileName.
TCHAR may be a WCHAR, so sizeof would allow GetModuleFileName to write
twice the size of the buffer.
Thanks to Ilya Berdichevsky for the bug and fix.
BUG=446464
Committed: https://crrev.com/487353e4abfc8902439be6aed288adcfb9ece9e3
Cr-Commit-Position: refs/heads/master@{#314223}
Patch Set 1 #
Messages
Total messages: 7 (2 generated)
|