1 --- tcom/src/refCmd.cpp.orig 2003-11-06 18:29:01.000000000 +0300
2 +++ tcom/src/refCmd.cpp 2005-12-22 15:07:36.000000000 +0300
5 // Append description.
\r
6 const wchar_t *pWide = static_cast<const wchar_t *>(description);
\r
9 - pWide = L"Unknown error";
\r
13 + FormatMessageW(FORMAT_MESSAGE_ALLOCATE_BUFFER|
14 + FORMAT_MESSAGE_FROM_SYSTEM,
17 + MAKELANGID(LANG_NEUTRAL,SUBLANG_DEFAULT),
20 + if (buffer == 0) {
\r
21 + buffer = L"Unknown error";
\r
24 + TclObject descriptionObj(buffer);
\r
25 + errorCode.lappend(descriptionObj);
\r
26 + result=descriptionObj;
\r
28 + LocalFree(buffer);
\r
31 TclObject descriptionObj(pWide);
\r
32 errorCode.lappend(descriptionObj);
\r
33 result.lappend(descriptionObj);
\r
37 // Append file and line number.
\r
38 std::ostringstream fileLine;
\r