41#define WIN32_NO_STATUS
48#include "wine/unicode.h"
49#include "kernel_private.h"
159 return args->args[
nr - 1];
169 static const WCHAR fmt_u[] = {
'%',
'u',0};
177 if (unicode_caller || !
arg)
179 static const WCHAR nullW[] = {
'(',
'n',
'u',
'l',
'l',
')',0};
188 const char *
str = (
const char *)
arg;
237 (unicode_caller &&
format[0] ==
'S') ||
238 (!unicode_caller &&
format[0] ==
's'))
249 (unicode_caller &&
format[0] ==
'C') ||
250 (!unicode_caller &&
format[0] ==
'c'))
263 (!unicode_caller &&
format[0] ==
'S'))
271 (!unicode_caller &&
format[0] ==
'C'))
284 if (needed == -1 || needed >=
size)
335 if (fmd->
w == fmd->
width) {
338 notspace = fmd->
space;
339 while (notspace != fmd->
t && *notspace ==
' ')
342 notspace = fmd->
space = fmd->
t;
343 fmd->
w = fmd->
t - notspace;
345 *fmd->
space++ =
'\r';
346 *fmd->
space++ =
'\n';
390 case '1':
case '2':
case '3':
case '4':
case '5':
391 case '6':
case '7':
case '8':
case '9':
403 case '0':
case '1':
case '2':
case '3':
404 case '4':
case '5':
case '6':
case '7':
407 insertnr = insertnr*10 + *
f-
'0';
498 TRACE(
"(0x%x,%p,%d,0x%x,%p,%d,%p)\n",
562 if (
nSize < destlength)
569 ret = destlength - 1;
598 TRACE(
"(0x%x,%p,%d,0x%x,%p,%d,%p)\n",
661 if (
nSize < talloced)
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
#define DEBUG_CHANNEL(args)
static TAGREF LPCWSTR LPDWORD LPVOID lpBuffer
#define ERROR_NOT_ENOUGH_MEMORY
#define ERROR_INSUFFICIENT_BUFFER
#define NT_SUCCESS(StatCode)
#define ERROR_INVALID_PARAMETER
#define HeapFree(x, y, z)
#define WideCharToMultiByte
#define MultiByteToWideChar
HMODULE WINAPI GetModuleHandleW(LPCWSTR lpModuleName)
GLint GLint GLint GLint GLint x
GLenum GLuint GLenum GLsizei const GLchar * buf
GLuint GLsizei GLsizei * length
HLOCAL NTAPI LocalAlloc(UINT uFlags, SIZE_T dwBytes)
NTSYSAPI ULONG WINAPI RtlNtStatusToDosError(NTSTATUS)
static const WCHAR nullW[]
#define memcpy(s1, s2, n)
#define memmove(s1, s2, n)
NTSYSAPI NTSTATUS NTAPI RtlFindMessage(_In_ PVOID BaseAddress, _In_ ULONG Type, _In_ ULONG Language, _In_ ULONG MessageId, _Out_ PMESSAGE_RESOURCE_ENTRY *MessageResourceEntry)
#define MESSAGE_RESOURCE_UNICODE
UCHAR Text[ANYSIZE_ARRAY]
static const WCHAR lang[]
#define FORMAT_MESSAGE_FROM_STRING
#define FORMAT_MESSAGE_MAX_WIDTH_MASK
#define FORMAT_MESSAGE_IGNORE_INSERTS
#define FORMAT_MESSAGE_FROM_SYSTEM
#define FORMAT_MESSAGE_ALLOCATE_BUFFER
#define FORMAT_MESSAGE_ARGUMENT_ARRAY
#define FORMAT_MESSAGE_FROM_HMODULE
*nSize LPSTR _Inout_ LPDWORD nSize
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
#define HRESULT_FACILITY(hr)
#define HRESULT_SEVERITY(hr)