Skip to content

Commit c56101f

Browse files
author
ross
committed
[project @ 2004-05-06 18:46:15 by ross]
change to TSTR
1 parent cdcb289 commit c56101f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

cbits/errors.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@
1515
* sof 9/98 : Removed use of non-standard (and wimpy :-) snprintf().
1616
*/
1717

18-
LPWSTR getErrorMessage(DWORD err)
18+
LPTSTR getErrorMessage(DWORD err)
1919
{
20-
LPWSTR what;
20+
LPTSTR what;
2121

22-
FormatMessageW(
22+
FormatMessage(
2323
(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_ALLOCATE_BUFFER) ,
2424
NULL,
2525
err,
2626
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), /* Default language */
27-
(LPWSTR) &what,
27+
(LPTSTR) &what,
2828
0,
2929
NULL
3030
);

include/errors.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
*/
1212

1313
/* result should be freed using LocalFree */
14-
extern LPWSTR getErrorMessage(DWORD err);
14+
extern LPTSTR getErrorMessage(DWORD err);
1515

1616
#endif /* _MY_ERRORS_H */

0 commit comments

Comments
 (0)