|
@@ -24,13 +24,8 @@ __inline void PrintError(LPWSTR linedesc, LPWSTR filename, int lineno, DWORD err
|
|
|
0,
|
|
|
NULL );
|
|
|
|
|
|
- swprintf_s(
|
|
|
- errbuf,
|
|
|
- _T("\nThe following call failed at line %d in %s:\n\n\t%s\n\nReason: %s\n"),
|
|
|
- lineno,
|
|
|
- filename,
|
|
|
- linedesc,
|
|
|
- lpBuffer);
|
|
|
+ swprintf_s(errbuf, L"\nThe following call failed at line %d in %s:\n\n\t%s\n\nReason: %s\n",
|
|
|
+ lineno, filename, linedesc, lpBuffer);
|
|
|
|
|
|
#ifndef _WINDOWS
|
|
|
WriteFile(GetStdHandle(STD_ERROR_HANDLE), errbuf, _tcslen(errbuf), &numread, FALSE );
|