We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdcb289 commit c56101fCopy full SHA for c56101f
cbits/errors.c
@@ -15,16 +15,16 @@
15
* sof 9/98 : Removed use of non-standard (and wimpy :-) snprintf().
16
*/
17
18
-LPWSTR getErrorMessage(DWORD err)
+LPTSTR getErrorMessage(DWORD err)
19
{
20
- LPWSTR what;
+ LPTSTR what;
21
22
- FormatMessageW(
+ FormatMessage(
23
(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_ALLOCATE_BUFFER) ,
24
NULL,
25
err,
26
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), /* Default language */
27
- (LPWSTR) &what,
+ (LPTSTR) &what,
28
0,
29
NULL
30
);
include/errors.h
@@ -11,6 +11,6 @@
11
12
13
/* result should be freed using LocalFree */
14
-extern LPWSTR getErrorMessage(DWORD err);
+extern LPTSTR getErrorMessage(DWORD err);
#endif /* _MY_ERRORS_H */
0 commit comments