Commit 9b802a3d authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

msvcr: Build without -DWINE_NO_LONG_TYPES.

parent df25a192
EXTRADEFS = -DWINE_NO_LONG_TYPES
MODULE = concrt140.dll MODULE = concrt140.dll
PARENTSRC = ../msvcrt PARENTSRC = ../msvcrt
......
EXTRADEFS = -DWINE_NO_LONG_TYPES -D_CRTDLL -D_CRTIMP= EXTRADEFS = -D_CRTDLL -D_CRTIMP=
MODULE = crtdll.dll MODULE = crtdll.dll
IMPORTS = ntdll IMPORTS = ntdll
DELAYIMPORTS = advapi32 user32 DELAYIMPORTS = advapi32 user32
......
EXTRADEFS = -DWINE_NO_LONG_TYPES -D_CRTIMP= EXTRADEFS = -D_CRTIMP=
MODULE = msvcr100.dll MODULE = msvcr100.dll
IMPORTLIB = msvcr100 IMPORTLIB = msvcr100
IMPORTS = ntdll IMPORTS = ntdll
......
EXTRADEFS = -DWINE_NO_LONG_TYPES -D_CRTIMP= EXTRADEFS = -D_CRTIMP=
MODULE = msvcr110.dll MODULE = msvcr110.dll
IMPORTLIB = msvcr110 IMPORTLIB = msvcr110
IMPORTS = ntdll IMPORTS = ntdll
......
EXTRADEFS = -DWINE_NO_LONG_TYPES -D_CRTIMP= EXTRADEFS = -D_CRTIMP=
MODULE = msvcr120.dll MODULE = msvcr120.dll
IMPORTLIB = msvcr120 IMPORTLIB = msvcr120
IMPORTS = ntdll IMPORTS = ntdll
......
EXTRADEFS = -DWINE_NO_LONG_TYPES -D_CRTIMP= EXTRADEFS = -D_CRTIMP=
MODULE = msvcr70.dll MODULE = msvcr70.dll
IMPORTLIB = msvcr70 IMPORTLIB = msvcr70
IMPORTS = ntdll IMPORTS = ntdll
......
EXTRADEFS = -DWINE_NO_LONG_TYPES -D_CRTIMP= EXTRADEFS = -D_CRTIMP=
MODULE = msvcr71.dll MODULE = msvcr71.dll
IMPORTLIB = msvcr71 IMPORTLIB = msvcr71
IMPORTS = ntdll IMPORTS = ntdll
......
EXTRADEFS = -DWINE_NO_LONG_TYPES -D_CRTIMP= EXTRADEFS = -D_CRTIMP=
MODULE = msvcr80.dll MODULE = msvcr80.dll
IMPORTLIB = msvcr80 IMPORTLIB = msvcr80
IMPORTS = ntdll IMPORTS = ntdll
......
EXTRADEFS = -DWINE_NO_LONG_TYPES -D_CRTIMP= EXTRADEFS = -D_CRTIMP=
MODULE = msvcr90.dll MODULE = msvcr90.dll
IMPORTLIB = msvcr90 IMPORTLIB = msvcr90
IMPORTS = ntdll IMPORTS = ntdll
......
EXTRADEFS = -DWINE_NO_LONG_TYPES -D_CRTIMP= EXTRADEFS = -D_CRTIMP=
MODULE = msvcrt.dll MODULE = msvcrt.dll
IMPORTLIB = msvcrt IMPORTLIB = msvcrt
IMPORTS = ntdll IMPORTS = ntdll
......
...@@ -527,7 +527,7 @@ DEFINE_THISCALL_WRAPPER(scheduler_resource_allocation_error_ctor_name, 12) ...@@ -527,7 +527,7 @@ DEFINE_THISCALL_WRAPPER(scheduler_resource_allocation_error_ctor_name, 12)
scheduler_resource_allocation_error* __thiscall scheduler_resource_allocation_error_ctor_name( scheduler_resource_allocation_error* __thiscall scheduler_resource_allocation_error_ctor_name(
scheduler_resource_allocation_error *this, const char *name, HRESULT hr) scheduler_resource_allocation_error *this, const char *name, HRESULT hr)
{ {
TRACE("(%p %s %x)\n", this, wine_dbgstr_a(name), hr); TRACE("(%p %s %lx)\n", this, wine_dbgstr_a(name), hr);
__exception_ctor(&this->e, name, &scheduler_resource_allocation_error_vtable); __exception_ctor(&this->e, name, &scheduler_resource_allocation_error_vtable);
this->hr = hr; this->hr = hr;
return this; return this;
...@@ -1101,7 +1101,7 @@ static void ThreadScheduler_dtor(ThreadScheduler *this) ...@@ -1101,7 +1101,7 @@ static void ThreadScheduler_dtor(ThreadScheduler *this)
{ {
int i; int i;
if(this->ref != 0) WARN("ref = %d\n", this->ref); if(this->ref != 0) WARN("ref = %ld\n", this->ref);
SchedulerPolicy_dtor(&this->policy); SchedulerPolicy_dtor(&this->policy);
for(i=0; i<this->shutdown_count; i++) for(i=0; i<this->shutdown_count; i++)
......
...@@ -153,7 +153,7 @@ static BOOL handle_enhanced_keys(INPUT_RECORD *ir, unsigned char *ch1, unsigned ...@@ -153,7 +153,7 @@ static BOOL handle_enhanced_keys(INPUT_RECORD *ir, unsigned char *ch1, unsigned
} }
} }
WARN("Unmapped char keyState=%x vk=%x\n", WARN("Unmapped char keyState=%lx vk=%x\n",
ir->Event.KeyEvent.dwControlKeyState, ir->Event.KeyEvent.wVirtualScanCode); ir->Event.KeyEvent.dwControlKeyState, ir->Event.KeyEvent.wVirtualScanCode);
return FALSE; return FALSE;
} }
......
...@@ -272,7 +272,7 @@ int CDECL raise(int sig) ...@@ -272,7 +272,7 @@ int CDECL raise(int sig)
*/ */
int CDECL _XcptFilter(NTSTATUS ex, PEXCEPTION_POINTERS ptr) int CDECL _XcptFilter(NTSTATUS ex, PEXCEPTION_POINTERS ptr)
{ {
TRACE("(%08x,%p)\n", ex, ptr); TRACE("(%08lx,%p)\n", ex, ptr);
/* I assume ptr->ExceptionRecord->ExceptionCode is the same as ex */ /* I assume ptr->ExceptionRecord->ExceptionCode is the same as ex */
return msvcrt_exception_filter(ptr); return msvcrt_exception_filter(ptr);
} }
......
...@@ -368,7 +368,7 @@ static DWORD catch_function_nested_handler( EXCEPTION_RECORD *rec, EXCEPTION_REG ...@@ -368,7 +368,7 @@ static DWORD catch_function_nested_handler( EXCEPTION_RECORD *rec, EXCEPTION_REG
*rec = *prev_rec; *rec = *prev_rec;
rec->ExceptionFlags &= ~EH_UNWINDING; rec->ExceptionFlags &= ~EH_UNWINDING;
if(TRACE_ON(seh)) { if(TRACE_ON(seh)) {
TRACE("detect rethrow: exception code: %x\n", rec->ExceptionCode); TRACE("detect rethrow: exception code: %lx\n", rec->ExceptionCode);
if(rec->ExceptionCode == CXX_EXCEPTION) if(rec->ExceptionCode == CXX_EXCEPTION)
TRACE("re-propagate: obj: %lx, type: %lx\n", TRACE("re-propagate: obj: %lx, type: %lx\n",
rec->ExceptionInformation[1], rec->ExceptionInformation[2]); rec->ExceptionInformation[1], rec->ExceptionInformation[2]);
...@@ -538,7 +538,7 @@ static LONG CALLBACK se_translation_filter( EXCEPTION_POINTERS *ep, void *c ) ...@@ -538,7 +538,7 @@ static LONG CALLBACK se_translation_filter( EXCEPTION_POINTERS *ep, void *c )
if (rec->ExceptionCode != CXX_EXCEPTION) if (rec->ExceptionCode != CXX_EXCEPTION)
{ {
TRACE( "non-c++ exception thrown in SEH handler: %x\n", rec->ExceptionCode ); TRACE( "non-c++ exception thrown in SEH handler: %lx\n", rec->ExceptionCode );
terminate(); terminate();
} }
...@@ -601,7 +601,7 @@ DWORD CDECL cxx_frame_handler( PEXCEPTION_RECORD rec, cxx_exception_frame* frame ...@@ -601,7 +601,7 @@ DWORD CDECL cxx_frame_handler( PEXCEPTION_RECORD rec, cxx_exception_frame* frame
*rec = *msvcrt_get_thread_data()->exc_record; *rec = *msvcrt_get_thread_data()->exc_record;
rec->ExceptionFlags &= ~EH_UNWINDING; rec->ExceptionFlags &= ~EH_UNWINDING;
if(TRACE_ON(seh)) { if(TRACE_ON(seh)) {
TRACE("detect rethrow: exception code: %x\n", rec->ExceptionCode); TRACE("detect rethrow: exception code: %lx\n", rec->ExceptionCode);
if(rec->ExceptionCode == CXX_EXCEPTION) if(rec->ExceptionCode == CXX_EXCEPTION)
TRACE("re-propagate: obj: %lx, type: %lx\n", TRACE("re-propagate: obj: %lx, type: %lx\n",
rec->ExceptionInformation[1], rec->ExceptionInformation[2]); rec->ExceptionInformation[1], rec->ExceptionInformation[2]);
...@@ -633,7 +633,7 @@ DWORD CDECL cxx_frame_handler( PEXCEPTION_RECORD rec, cxx_exception_frame* frame ...@@ -633,7 +633,7 @@ DWORD CDECL cxx_frame_handler( PEXCEPTION_RECORD rec, cxx_exception_frame* frame
thread_data_t *data = msvcrt_get_thread_data(); thread_data_t *data = msvcrt_get_thread_data();
exc_type = NULL; exc_type = NULL;
TRACE("handling C exception code %x rec %p frame %p trylevel %d descr %p nested_frame %p\n", TRACE("handling C exception code %lx rec %p frame %p trylevel %d descr %p nested_frame %p\n",
rec->ExceptionCode, rec, frame, frame->trylevel, descr, nested_frame ); rec->ExceptionCode, rec, frame, frame->trylevel, descr, nested_frame );
if (data->se_translator) { if (data->se_translator) {
...@@ -866,7 +866,7 @@ int CDECL _except_handler2(PEXCEPTION_RECORD rec, ...@@ -866,7 +866,7 @@ int CDECL _except_handler2(PEXCEPTION_RECORD rec,
PCONTEXT context, PCONTEXT context,
EXCEPTION_REGISTRATION_RECORD** dispatcher) EXCEPTION_REGISTRATION_RECORD** dispatcher)
{ {
FIXME("exception %x flags=%x at %p handler=%p %p %p stub\n", FIXME("exception %lx flags=%lx at %p handler=%p %p %p stub\n",
rec->ExceptionCode, rec->ExceptionFlags, rec->ExceptionAddress, rec->ExceptionCode, rec->ExceptionFlags, rec->ExceptionAddress,
frame->Handler, context, dispatcher); frame->Handler, context, dispatcher);
return ExceptionContinueSearch; return ExceptionContinueSearch;
...@@ -883,7 +883,7 @@ int CDECL _except_handler3(PEXCEPTION_RECORD rec, ...@@ -883,7 +883,7 @@ int CDECL _except_handler3(PEXCEPTION_RECORD rec,
EXCEPTION_POINTERS exceptPtrs; EXCEPTION_POINTERS exceptPtrs;
PSCOPETABLE pScopeTable; PSCOPETABLE pScopeTable;
TRACE("exception %x flags=%x at %p handler=%p %p %p semi-stub\n", TRACE("exception %lx flags=%lx at %p handler=%p %p %p semi-stub\n",
rec->ExceptionCode, rec->ExceptionFlags, rec->ExceptionAddress, rec->ExceptionCode, rec->ExceptionFlags, rec->ExceptionAddress,
frame->handler, context, dispatcher); frame->handler, context, dispatcher);
...@@ -952,7 +952,7 @@ int CDECL _except_handler4_common( ULONG *cookie, void (*check_cookie)(void), ...@@ -952,7 +952,7 @@ int CDECL _except_handler4_common( ULONG *cookie, void (*check_cookie)(void),
EXCEPTION_POINTERS exceptPtrs; EXCEPTION_POINTERS exceptPtrs;
const SCOPETABLE_V4 *scope_table = get_scopetable_v4( frame, *cookie ); const SCOPETABLE_V4 *scope_table = get_scopetable_v4( frame, *cookie );
TRACE( "exception %x flags=%x at %p handler=%p %p %p cookie=%x scope table=%p cookies=%d/%x,%d/%x\n", TRACE( "exception %lx flags=%lx at %p handler=%p %p %p cookie=%lx scope table=%p cookies=%d/%lx,%d/%lx\n",
rec->ExceptionCode, rec->ExceptionFlags, rec->ExceptionAddress, rec->ExceptionCode, rec->ExceptionFlags, rec->ExceptionAddress,
frame->handler, context, dispatcher, *cookie, scope_table, frame->handler, context, dispatcher, *cookie, scope_table,
scope_table->gs_cookie_offset, scope_table->gs_cookie_xor, scope_table->gs_cookie_offset, scope_table->gs_cookie_xor,
...@@ -1187,7 +1187,7 @@ int __cdecl _fpieee_flt(__msvcrt_ulong exception_code, EXCEPTION_POINTERS *ep, ...@@ -1187,7 +1187,7 @@ int __cdecl _fpieee_flt(__msvcrt_ulong exception_code, EXCEPTION_POINTERS *ep,
rec.Cause.Underflow = rec.Enable.Underflow & rec.Status.Underflow; rec.Cause.Underflow = rec.Enable.Underflow & rec.Status.Underflow;
rec.Cause.Inexact = rec.Enable.Inexact & rec.Status.Inexact; rec.Cause.Inexact = rec.Enable.Inexact & rec.Status.Inexact;
TRACE("opcode: %x\n", *(ULONG*)ep->ContextRecord->FloatSave.ErrorOffset); TRACE("opcode: %lx\n", *(ULONG*)ep->ContextRecord->FloatSave.ErrorOffset);
if(*(WORD*)ctx->ErrorOffset == 0x35dc) { /* fdiv m64fp */ if(*(WORD*)ctx->ErrorOffset == 0x35dc) { /* fdiv m64fp */
if(exception_code==STATUS_FLOAT_DIVIDE_BY_ZERO || exception_code==STATUS_FLOAT_INVALID_OPERATION) { if(exception_code==STATUS_FLOAT_DIVIDE_BY_ZERO || exception_code==STATUS_FLOAT_INVALID_OPERATION) {
...@@ -1213,7 +1213,7 @@ int __cdecl _fpieee_flt(__msvcrt_ulong exception_code, EXCEPTION_POINTERS *ep, ...@@ -1213,7 +1213,7 @@ int __cdecl _fpieee_flt(__msvcrt_ulong exception_code, EXCEPTION_POINTERS *ep,
return ret; return ret;
} }
FIXME("unsupported opcode: %x\n", *(ULONG*)ep->ContextRecord->FloatSave.ErrorOffset); FIXME("unsupported opcode: %lx\n", *(ULONG*)ep->ContextRecord->FloatSave.ErrorOffset);
return EXCEPTION_CONTINUE_SEARCH; return EXCEPTION_CONTINUE_SEARCH;
} }
......
...@@ -350,7 +350,7 @@ static void* WINAPI call_catch_block(EXCEPTION_RECORD *rec) ...@@ -350,7 +350,7 @@ static void* WINAPI call_catch_block(EXCEPTION_RECORD *rec)
} }
__EXCEPT_CTX(cxx_rethrow_filter, &ctx) __EXCEPT_CTX(cxx_rethrow_filter, &ctx)
{ {
TRACE("detect rethrow: exception code: %x\n", prev_rec->ExceptionCode); TRACE("detect rethrow: exception code: %lx\n", prev_rec->ExceptionCode);
ctx.rethrow = TRUE; ctx.rethrow = TRUE;
if (untrans_rec) if (untrans_rec)
...@@ -486,7 +486,7 @@ static LONG CALLBACK se_translation_filter(EXCEPTION_POINTERS *ep, void *c) ...@@ -486,7 +486,7 @@ static LONG CALLBACK se_translation_filter(EXCEPTION_POINTERS *ep, void *c)
if (rec->ExceptionCode != CXX_EXCEPTION) if (rec->ExceptionCode != CXX_EXCEPTION)
{ {
TRACE("non-c++ exception thrown in SEH handler: %x\n", rec->ExceptionCode); TRACE("non-c++ exception thrown in SEH handler: %lx\n", rec->ExceptionCode);
terminate(); terminate();
} }
...@@ -558,7 +558,7 @@ static DWORD cxx_frame_handler(EXCEPTION_RECORD *rec, ULONG64 frame, ...@@ -558,7 +558,7 @@ static DWORD cxx_frame_handler(EXCEPTION_RECORD *rec, ULONG64 frame,
TRACE("nested exception detected\n"); TRACE("nested exception detected\n");
unwindlevel = tryblock->end_level; unwindlevel = tryblock->end_level;
orig_frame = *(ULONG64*)rva_to_ptr(catchblock->frame, frame); orig_frame = *(ULONG64*)rva_to_ptr(catchblock->frame, frame);
TRACE("setting orig_frame to %lx\n", orig_frame); TRACE("setting orig_frame to %I64x\n", orig_frame);
} }
} }
} }
...@@ -591,7 +591,7 @@ static DWORD cxx_frame_handler(EXCEPTION_RECORD *rec, ULONG64 frame, ...@@ -591,7 +591,7 @@ static DWORD cxx_frame_handler(EXCEPTION_RECORD *rec, ULONG64 frame,
if (TRACE_ON(seh)) if (TRACE_ON(seh))
{ {
TRACE("handling C++ exception rec %p frame %lx descr %p\n", rec, frame, descr); TRACE("handling C++ exception rec %p frame %I64x descr %p\n", rec, frame, descr);
dump_exception_type(exc_type, rec->ExceptionInformation[3]); dump_exception_type(exc_type, rec->ExceptionInformation[3]);
dump_function_descr(descr, dispatch->ImageBase); dump_function_descr(descr, dispatch->ImageBase);
} }
...@@ -601,7 +601,7 @@ static DWORD cxx_frame_handler(EXCEPTION_RECORD *rec, ULONG64 frame, ...@@ -601,7 +601,7 @@ static DWORD cxx_frame_handler(EXCEPTION_RECORD *rec, ULONG64 frame,
thread_data_t *data = msvcrt_get_thread_data(); thread_data_t *data = msvcrt_get_thread_data();
exc_type = NULL; exc_type = NULL;
TRACE("handling C exception code %x rec %p frame %lx descr %p\n", TRACE("handling C exception code %lx rec %p frame %I64x descr %p\n",
rec->ExceptionCode, rec, frame, descr); rec->ExceptionCode, rec, frame, descr);
if (data->se_translator) { if (data->se_translator) {
...@@ -647,7 +647,7 @@ int CDECL __CxxExceptionFilter( PEXCEPTION_POINTERS ptrs, ...@@ -647,7 +647,7 @@ int CDECL __CxxExceptionFilter( PEXCEPTION_POINTERS ptrs,
EXCEPTION_DISPOSITION CDECL __CxxFrameHandler( EXCEPTION_RECORD *rec, ULONG64 frame, EXCEPTION_DISPOSITION CDECL __CxxFrameHandler( EXCEPTION_RECORD *rec, ULONG64 frame,
CONTEXT *context, DISPATCHER_CONTEXT *dispatch ) CONTEXT *context, DISPATCHER_CONTEXT *dispatch )
{ {
TRACE( "%p %lx %p %p\n", rec, frame, context, dispatch ); TRACE( "%p %I64x %p %p\n", rec, frame, context, dispatch );
return cxx_frame_handler( rec, frame, context, dispatch, return cxx_frame_handler( rec, frame, context, dispatch,
rva_to_ptr(*(UINT*)dispatch->HandlerData, dispatch->ImageBase) ); rva_to_ptr(*(UINT*)dispatch->HandlerData, dispatch->ImageBase) );
} }
......
...@@ -854,7 +854,7 @@ int CDECL __crtLCMapStringA( ...@@ -854,7 +854,7 @@ int CDECL __crtLCMapStringA(
WCHAR buf_out[32], *out = buf_out; WCHAR buf_out[32], *out = buf_out;
int in_len, out_len, r; int in_len, out_len, r;
TRACE("(lcid %x, flags %x, %s(%d), %p(%d), %x, %d), partial stub!\n", TRACE("(lcid %lx, flags %lx, %s(%d), %p(%d), %x, %d), partial stub!\n",
lcid, mapflags, src, srclen, dst, dstlen, codepage, xflag); lcid, mapflags, src, srclen, dst, dstlen, codepage, xflag);
in_len = MultiByteToWideChar(codepage, MB_ERR_INVALID_CHARS, src, srclen, NULL, 0); in_len = MultiByteToWideChar(codepage, MB_ERR_INVALID_CHARS, src, srclen, NULL, 0);
...@@ -904,7 +904,7 @@ done: ...@@ -904,7 +904,7 @@ done:
int CDECL __crtLCMapStringW(LCID lcid, DWORD mapflags, const wchar_t *src, int CDECL __crtLCMapStringW(LCID lcid, DWORD mapflags, const wchar_t *src,
int srclen, wchar_t *dst, int dstlen, unsigned int codepage, int xflag) int srclen, wchar_t *dst, int dstlen, unsigned int codepage, int xflag)
{ {
FIXME("(lcid %x, flags %x, %s(%d), %p(%d), %x, %d), partial stub!\n", FIXME("(lcid %lx, flags %lx, %s(%d), %p(%d), %x, %d), partial stub!\n",
lcid, mapflags, debugstr_w(src), srclen, dst, dstlen, codepage, xflag); lcid, mapflags, debugstr_w(src), srclen, dst, dstlen, codepage, xflag);
return LCMapStringW(lcid, mapflags, src, srclen, dst, dstlen); return LCMapStringW(lcid, mapflags, src, srclen, dst, dstlen);
...@@ -916,7 +916,7 @@ int CDECL __crtLCMapStringW(LCID lcid, DWORD mapflags, const wchar_t *src, ...@@ -916,7 +916,7 @@ int CDECL __crtLCMapStringW(LCID lcid, DWORD mapflags, const wchar_t *src,
int CDECL __crtCompareStringA( LCID lcid, DWORD flags, const char *src1, int len1, int CDECL __crtCompareStringA( LCID lcid, DWORD flags, const char *src1, int len1,
const char *src2, int len2 ) const char *src2, int len2 )
{ {
FIXME("(lcid %x, flags %x, %s(%d), %s(%d), partial stub\n", FIXME("(lcid %lx, flags %lx, %s(%d), %s(%d), partial stub\n",
lcid, flags, debugstr_a(src1), len1, debugstr_a(src2), len2 ); lcid, flags, debugstr_a(src1), len1, debugstr_a(src2), len2 );
/* FIXME: probably not entirely right */ /* FIXME: probably not entirely right */
return CompareStringA( lcid, flags, src1, len1, src2, len2 ); return CompareStringA( lcid, flags, src1, len1, src2, len2 );
...@@ -928,7 +928,7 @@ int CDECL __crtCompareStringA( LCID lcid, DWORD flags, const char *src1, int len ...@@ -928,7 +928,7 @@ int CDECL __crtCompareStringA( LCID lcid, DWORD flags, const char *src1, int len
int CDECL __crtCompareStringW( LCID lcid, DWORD flags, const wchar_t *src1, int len1, int CDECL __crtCompareStringW( LCID lcid, DWORD flags, const wchar_t *src1, int len1,
const wchar_t *src2, int len2 ) const wchar_t *src2, int len2 )
{ {
FIXME("(lcid %x, flags %x, %s(%d), %s(%d), partial stub\n", FIXME("(lcid %lx, flags %lx, %s(%d), %s(%d), partial stub\n",
lcid, flags, debugstr_w(src1), len1, debugstr_w(src2), len2 ); lcid, flags, debugstr_w(src1), len1, debugstr_w(src2), len2 );
/* FIXME: probably not entirely right */ /* FIXME: probably not entirely right */
return CompareStringW( lcid, flags, src1, len1, src2, len2 ); return CompareStringW( lcid, flags, src1, len1, src2, len2 );
...@@ -939,7 +939,7 @@ int CDECL __crtCompareStringW( LCID lcid, DWORD flags, const wchar_t *src1, int ...@@ -939,7 +939,7 @@ int CDECL __crtCompareStringW( LCID lcid, DWORD flags, const wchar_t *src1, int
*/ */
int CDECL __crtGetLocaleInfoW( LCID lcid, LCTYPE type, wchar_t *buffer, int len ) int CDECL __crtGetLocaleInfoW( LCID lcid, LCTYPE type, wchar_t *buffer, int len )
{ {
FIXME("(lcid %x, type %x, %p(%d), partial stub\n", lcid, type, buffer, len ); FIXME("(lcid %lx, type %lx, %p(%d), partial stub\n", lcid, type, buffer, len );
/* FIXME: probably not entirely right */ /* FIXME: probably not entirely right */
return GetLocaleInfoW( lcid, type, buffer, len ); return GetLocaleInfoW( lcid, type, buffer, len );
} }
...@@ -950,7 +950,7 @@ int CDECL __crtGetLocaleInfoW( LCID lcid, LCTYPE type, wchar_t *buffer, int len ...@@ -950,7 +950,7 @@ int CDECL __crtGetLocaleInfoW( LCID lcid, LCTYPE type, wchar_t *buffer, int len
*/ */
int CDECL __crtGetLocaleInfoEx( const WCHAR *locale, LCTYPE type, wchar_t *buffer, int len ) int CDECL __crtGetLocaleInfoEx( const WCHAR *locale, LCTYPE type, wchar_t *buffer, int len )
{ {
TRACE("(%s, %x, %p, %d)\n", debugstr_w(locale), type, buffer, len); TRACE("(%s, %lx, %p, %d)\n", debugstr_w(locale), type, buffer, len);
return GetLocaleInfoEx(locale, type, buffer, len); return GetLocaleInfoEx(locale, type, buffer, len);
} }
#endif #endif
...@@ -964,7 +964,7 @@ int CDECL __crtGetLocaleInfoEx( const WCHAR *locale, LCTYPE type, wchar_t *buffe ...@@ -964,7 +964,7 @@ int CDECL __crtGetLocaleInfoEx( const WCHAR *locale, LCTYPE type, wchar_t *buffe
BOOL CDECL __crtGetStringTypeW(DWORD unk, DWORD type, BOOL CDECL __crtGetStringTypeW(DWORD unk, DWORD type,
wchar_t *buffer, int len, WORD *out) wchar_t *buffer, int len, WORD *out)
{ {
FIXME("(unk %x, type %x, wstr %p(%d), %p) partial stub\n", FIXME("(unk %lx, type %lx, wstr %p(%d), %p) partial stub\n",
unk, type, buffer, len, out); unk, type, buffer, len, out);
return GetStringTypeW(type, buffer, len, out); return GetStringTypeW(type, buffer, len, out);
......
...@@ -89,7 +89,7 @@ static inline void msvcrt_free_tls_mem(void) ...@@ -89,7 +89,7 @@ static inline void msvcrt_free_tls_mem(void)
*/ */
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{ {
TRACE("(%p, %s, %p) pid(%x), tid(%x), tls(%u)\n", TRACE("(%p, %s, %p) pid(%lx), tid(%lx), tls(%lu)\n",
hinstDLL, msvcrt_get_reason(fdwReason), lpvReserved, hinstDLL, msvcrt_get_reason(fdwReason), lpvReserved,
GetCurrentProcessId(), GetCurrentThreadId(), GetCurrentProcessId(), GetCurrentThreadId(),
msvcrt_tls_index); msvcrt_tls_index);
......
...@@ -10318,7 +10318,7 @@ double CDECL _except1(DWORD fpe, _FP_OPERATION_CODE op, double arg, double res, ...@@ -10318,7 +10318,7 @@ double CDECL _except1(DWORD fpe, _FP_OPERATION_CODE op, double arg, double res,
WORD operation; WORD operation;
int raise = 0; int raise = 0;
TRACE("(%x %x %lf %lf %x %p)\n", fpe, op, arg, res, cw, unk); TRACE("(%lx %x %lf %lf %lx %p)\n", fpe, op, arg, res, cw, unk);
#ifdef _WIN64 #ifdef _WIN64
cw = ((cw >> 7) & 0x3f) | ((cw >> 3) & 0xc00); cw = ((cw >> 7) & 0x3f) | ((cw >> 3) & 0xc00);
......
...@@ -325,7 +325,10 @@ threadmbcinfo* create_mbcinfo(int cp, LCID lcid, threadmbcinfo *old_mbcinfo) ...@@ -325,7 +325,10 @@ threadmbcinfo* create_mbcinfo(int cp, LCID lcid, threadmbcinfo *old_mbcinfo)
ret = MultiByteToWideChar(newcp, 0, bufA, charcount, bufW, charcount); ret = MultiByteToWideChar(newcp, 0, bufA, charcount, bufW, charcount);
if (ret != charcount) if (ret != charcount)
ERR("MultiByteToWideChar of chars failed for cp %d, ret=%d (exp %d), error=%d\n", newcp, ret, charcount, GetLastError()); {
ERR("MultiByteToWideChar of chars failed for cp %d, ret=%d (exp %d), error=%ld\n",
newcp, ret, charcount, GetLastError());
}
GetStringTypeW(CT_CTYPE1, bufW, charcount, chartypes); GetStringTypeW(CT_CTYPE1, bufW, charcount, chartypes);
LCMapStringW(lcid, LCMAP_LOWERCASE, bufW, charcount, lowW, charcount); LCMapStringW(lcid, LCMAP_LOWERCASE, bufW, charcount, lowW, charcount);
...@@ -350,7 +353,10 @@ threadmbcinfo* create_mbcinfo(int cp, LCID lcid, threadmbcinfo *old_mbcinfo) ...@@ -350,7 +353,10 @@ threadmbcinfo* create_mbcinfo(int cp, LCID lcid, threadmbcinfo *old_mbcinfo)
ret = WideCharToMultiByte(newcp, 0, bufW, charcount, bufA, charcount, NULL, NULL); ret = WideCharToMultiByte(newcp, 0, bufW, charcount, bufA, charcount, NULL, NULL);
if (ret != charcount) if (ret != charcount)
ERR("WideCharToMultiByte failed for cp %d, ret=%d (exp %d), error=%d\n", newcp, ret, charcount, GetLastError()); {
ERR("WideCharToMultiByte failed for cp %d, ret=%d (exp %d), error=%ld\n",
newcp, ret, charcount, GetLastError());
}
charcount = 0; charcount = 0;
for (i = 0; i < 256; i++) for (i = 0; i < 256; i++)
......
...@@ -516,7 +516,7 @@ int CDECL __crtGetShowWindowMode(void) ...@@ -516,7 +516,7 @@ int CDECL __crtGetShowWindowMode(void)
STARTUPINFOW si; STARTUPINFOW si;
GetStartupInfoW(&si); GetStartupInfoW(&si);
TRACE("flags=%x window=%d\n", si.dwFlags, si.wShowWindow); TRACE("flags=%lx window=%d\n", si.dwFlags, si.wShowWindow);
return si.dwFlags & STARTF_USESHOWWINDOW ? si.wShowWindow : SW_SHOWDEFAULT; return si.dwFlags & STARTF_USESHOWWINDOW ? si.wShowWindow : SW_SHOWDEFAULT;
} }
...@@ -526,7 +526,7 @@ int CDECL __crtGetShowWindowMode(void) ...@@ -526,7 +526,7 @@ int CDECL __crtGetShowWindowMode(void)
BOOL CDECL __crtInitializeCriticalSectionEx( BOOL CDECL __crtInitializeCriticalSectionEx(
CRITICAL_SECTION *cs, DWORD spin_count, DWORD flags) CRITICAL_SECTION *cs, DWORD spin_count, DWORD flags)
{ {
TRACE("(%p %x %x)\n", cs, spin_count, flags); TRACE("(%p %lx %lx)\n", cs, spin_count, flags);
return InitializeCriticalSectionEx(cs, spin_count, flags); return InitializeCriticalSectionEx(cs, spin_count, flags);
} }
...@@ -570,7 +570,7 @@ LONG CDECL __crtUnhandledException(EXCEPTION_POINTERS *ep) ...@@ -570,7 +570,7 @@ LONG CDECL __crtUnhandledException(EXCEPTION_POINTERS *ep)
*/ */
void CDECL __crtSleep(DWORD timeout) void CDECL __crtSleep(DWORD timeout)
{ {
TRACE("(%u)\n", timeout); TRACE("(%lu)\n", timeout);
Sleep(timeout); Sleep(timeout);
} }
......
...@@ -164,7 +164,7 @@ uintptr_t CDECL _beginthread( ...@@ -164,7 +164,7 @@ uintptr_t CDECL _beginthread(
(void*)start_address, &trampoline->module)) (void*)start_address, &trampoline->module))
{ {
trampoline->module = NULL; trampoline->module = NULL;
WARN("failed to get module for the start_address: %d\n", GetLastError()); WARN("failed to get module for the start_address: %lu\n", GetLastError());
} }
#endif #endif
...@@ -230,7 +230,7 @@ uintptr_t CDECL _beginthreadex( ...@@ -230,7 +230,7 @@ uintptr_t CDECL _beginthreadex(
(void*)start_address, &trampoline->module)) (void*)start_address, &trampoline->module))
{ {
trampoline->module = NULL; trampoline->module = NULL;
WARN("failed to get module for the start_address: %d\n", GetLastError()); WARN("failed to get module for the start_address: %lu\n", GetLastError());
} }
#endif #endif
......
EXTRADEFS = -DWINE_NO_LONG_TYPES -D_CRTIMP= EXTRADEFS = -D_CRTIMP=
MODULE = msvcrtd.dll MODULE = msvcrtd.dll
IMPORTLIB = msvcrtd IMPORTLIB = msvcrtd
IMPORTS = ntdll IMPORTS = ntdll
......
EXTRADEFS = -DWINE_NO_LONG_TYPES -D_CRTIMP= EXTRADEFS = -D_CRTIMP=
MODULE = ucrtbase.dll MODULE = ucrtbase.dll
IMPORTLIB = ucrtbase IMPORTLIB = ucrtbase
IMPORTS = ntdll IMPORTS = ntdll
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment