Skip to content

Commit 40814f9

Browse files
committed
inc: winapi: Re-add wsprintf/wvsprintf declarations to winuser.bi
(cherry picked from commit b55ded2)
1 parent a3cd66f commit 40814f9

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

changelog.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Version 1.02.1
99
[fixed]
1010
- 1.02.0 regression: win/winuser.bi: Renamed INPUT typedef to INPUT_ to avoid conflicts with the quirk keyword (due to bug #730)
1111
- 1.02.0 regression: OpenGL binding: glGetString() and some others use ZString Ptr instead of GLubyte Ptr again
12-
- 1.02.0 regression: Windows API binding: REFIID and some other REF* types were missing
12+
- 1.02.0 regression: Windows API binding: REFIID and some other REF* types were missing; wsprintf/wvsprintf declarations were missing
1313
- bindings: Various previously untranslated (or wrongly translated) #defines in SDL2, X11, crt/pthread, Windows API
1414
- Windows API binding: DirectX headers missed some declarations and some didn't compile
1515

inc/win/winuser.bi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,14 @@ const DIFFERENCE = 11
107107
#define MINIMUM_RESERVED_MANIFEST_RESOURCE_ID MAKEINTRESOURCE(1)
108108
#define MAXIMUM_RESERVED_MANIFEST_RESOURCE_ID MAKEINTRESOURCE(16)
109109

110+
#ifdef UNICODE
111+
#define wvsprintf wvsprintfW
112+
#define wsprintf wsprintfW
113+
#else
114+
#define wvsprintf wvsprintfA
115+
#define wsprintf wsprintfA
116+
#endif
117+
110118
declare function wvsprintfA(byval as LPSTR, byval as LPCSTR, byval arglist as va_list) as long
111119
declare function wvsprintfW(byval as LPWSTR, byval as LPCWSTR, byval arglist as va_list) as long
112120
declare function wsprintfA cdecl(byval as LPSTR, byval as LPCSTR, ...) as long

0 commit comments

Comments
 (0)