Building with machine setting X86 the following is producing an access violation:
(UNICODE,_UNICODE) is defined
char sz[] = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; // 68 chars = access violation , 67 chars = code runs fine
TCHAR szw[500] = _T("");
swprintf(szw,500,_T("%s"),sz);
With machine setting X64 the code runs without error. Version info is attached as image.