diff --git a/sdk/include/reactos/wine/unicode.h b/sdk/include/reactos/wine/unicode.h index 2550cf40653..5bf341ef74d 100644 --- a/sdk/include/reactos/wine/unicode.h +++ b/sdk/include/reactos/wine/unicode.h @@ -24,6 +24,12 @@ #define WINE_UNICODE_INLINE static inline #endif +#if (_WIN32_WINNT < _WIN32_WINNT_VISTA) || (DLL_EXPORT_VERSION < _WIN32_WINNT_VISTA) +/* msvcrt versions incompatibilities */ +#define _swprintf(s,f,...) _snwprintf((s),MAXLONG,(f),##__VA_ARGS__) +#define _vswprintf(s,f,v) _vsnwprintf((s),MAXLONG,(f),(v)) +#endif + #define memicmpW(s1,s2,n) _wcsnicmp((s1),(s2),(n)) #define strlenW(s) wcslen((s)) #define strcpyW(d,s) wcscpy((d),(s)) @@ -55,8 +61,8 @@ #define atolW(s) _wtol((s)) #define strlwrW(s) _wcslwr((s)) #define struprW(s) _wcsupr((s)) -#define sprintfW swprintf -#define vsprintfW vswprintf +#define sprintfW _swprintf +#define vsprintfW _vswprintf #define snprintfW _snwprintf #define vsnprintfW _vsnwprintf #define isprintW iswprint