Created by: vbaderks
_snwprintf requires the use of %s when passing a wchar* type as variadic argument. %S should be used for for char* arguments. note: for method _snprintf it is the other way around. Function file_exists can only handle a WCHAR * fn parameter (calls LAST_WCHAR at line 394) file_exists(const TCHAR fn) prototype changed to file_exists(const WCHAR fn) as TCHAR gives the impression that it can be a char or a wchar_t.
Printf format specifier %08x expects an unsigned int and not a pointer. Printf format specified %p expects a void pointer and not an unsigned int.
Note: alternative solution for %08x, would be to use %p as format specifier, which has the benefit of being more compatible with 64bit code.