[WIN32K:NTUSER] Similarly to what was done in USERSRV for harderrors, introduce the _scwprintf() helper function based on the imported _vscwprintf().

This commit is contained in:
Hermès Bélusca-Maïto
2018-08-19 22:18:34 +02:00
parent 43e2ab208a
commit 26933a0965
2 changed files with 30 additions and 0 deletions
+24
View File
@@ -9,6 +9,30 @@
#include <win32k.h>
DBG_DEFAULT_CHANNEL(UserMisc);
/*
* NOTE: _scwprintf() is NOT exported by ntoskrnl.exe,
* only _vscwprintf() is, so we need to implement it here.
* Code comes from sdk/lib/crt/printf/_scwprintf.c .
* See also win32ss/user/winsrv/usersrv/harderror.c .
*/
int
__cdecl
_scwprintf(
const wchar_t *format,
...)
{
int len;
va_list args;
va_start(args, format);
len = _vscwprintf(format, args);
va_end(args);
return len;
}
/*
* Test the Thread to verify and validate it. Hard to the core tests are required.
*/
+6
View File
@@ -92,6 +92,12 @@ HKL FASTCALL UserGetKeyboardLayout(DWORD dwThreadId);
/*************** MISC.C ***************/
int
__cdecl
_scwprintf(
const wchar_t *format,
...);
BOOL FASTCALL
UserSystemParametersInfo(
UINT uiAction,