Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the crashdump() function in win32 when not compiled with UNICODE
`wsprintf` is an hybrid function (a macro) for - either `char*` version `wsprintfA` - either `wchar_t*` version `wsprintfW` depending on `#define UNICODE` or not define UNICODE... If we use `wsprintf`, then we must use the `TEXT` macro for passing the format literal, and declare filename as `TCHAR*` which also is a macro.<br> https://docs.microsoft.com/en-us/windows/win32/intl/windows-data-types-for-strings Here we explicitily use a `wchar_t*`filename and a `wchar_t*`literal format specification, so we want to bypass UNICODE macro and explicitely use `wsprintfW`
- Loading branch information
1f1edcb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I should really revisit my windows stuff from pre-2017