diff --git a/dlls/msvcp90/ios.c b/dlls/msvcp90/ios.c index 4eefa851860..6d1ecbbe94b 100644 --- a/dlls/msvcp90/ios.c +++ b/dlls/msvcp90/ios.c @@ -1142,7 +1142,11 @@ int __thiscall basic_streambuf_char_uflow(basic_streambuf_char *this) /* ?_Xsgetn_s@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHPADIH@Z */ /* ?_Xsgetn_s@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA_JPEAD_K_J@Z */ +#if STREAMSIZE_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Xsgetn_s, 20) +#else DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Xsgetn_s, 16) +#endif #if _MSVCP_VER >= 80 #define call_basic_streambuf_char__Xsgetn_s(this, ptr, size, count) CALL_VTBL_FUNC(this, 28, \ streamsize, (basic_streambuf_char*, char*, MSVCP_size_t, streamsize), (this, ptr, size, count)) @@ -1181,7 +1185,11 @@ streamsize __thiscall basic_streambuf_char__Xsgetn_s(basic_streambuf_char *this, /* ?_Sgetn_s@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHPADIH@Z */ /* ?_Sgetn_s@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA_JPEAD_K_J@Z */ +#if STREAMSIZE_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Sgetn_s, 20) +#else DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Sgetn_s, 16) +#endif streamsize __thiscall basic_streambuf_char__Sgetn_s(basic_streambuf_char *this, char *ptr, MSVCP_size_t size, streamsize count) { TRACE("(%p %p %lu %s)\n", this, ptr, size, wine_dbgstr_longlong(count)); @@ -1331,7 +1339,11 @@ locale* __thiscall basic_streambuf_char_pubimbue(basic_streambuf_char *this, loc /* ?seekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAE?AV?$fpos@H@2@JHH@Z */ /* ?seekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */ +#if STREAMOFF_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_streambuf_char_seekoff, 24) +#else DEFINE_THISCALL_WRAPPER(basic_streambuf_char_seekoff, 20) +#endif #if _MSVCP_VER >= 80 #define call_basic_streambuf_char_seekoff(this, ret, off, way, mode) CALL_VTBL_FUNC(this, 36, \ fpos_int*, (basic_streambuf_char*, fpos_int*, streamoff, int, int), (this, ret, off, way, mode)) @@ -1351,7 +1363,11 @@ fpos_int* __thiscall basic_streambuf_char_seekoff(basic_streambuf_char *this, /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@JHH@Z */ /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@_JHH@Z */ +#if STREAMOFF_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubseekoff, 24) +#else DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubseekoff, 20) +#endif fpos_int* __thiscall basic_streambuf_char_pubseekoff(basic_streambuf_char *this, fpos_int *ret, streamoff off, int way, int mode) { @@ -1361,7 +1377,11 @@ fpos_int* __thiscall basic_streambuf_char_pubseekoff(basic_streambuf_char *this, /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@JII@Z */ /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@_JII@Z */ +#if STREAMOFF_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubseekoff_old, 24) +#else DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubseekoff_old, 20) +#endif fpos_int* __thiscall basic_streambuf_char_pubseekoff_old(basic_streambuf_char *this, fpos_int *ret, streamoff off, unsigned int way, unsigned int mode) { @@ -1411,7 +1431,11 @@ fpos_int* __thiscall basic_streambuf_char_pubseekpos_old(basic_streambuf_char *t /* ?setbuf@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEPAV12@PADH@Z */ /* ?setbuf@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAPEAV12@PEAD_J@Z */ +#if STREAMSIZE_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_streambuf_char_setbuf, 16) +#else DEFINE_THISCALL_WRAPPER(basic_streambuf_char_setbuf, 12) +#endif #if _MSVCP_VER >= 80 #define call_basic_streambuf_char_setbuf(this, buf, count) CALL_VTBL_FUNC(this, 44, \ basic_streambuf_char*, (basic_streambuf_char*, char*, streamsize), (this, buf, count)) @@ -1427,7 +1451,11 @@ basic_streambuf_char* __thiscall basic_streambuf_char_setbuf(basic_streambuf_cha /* ?pubsetbuf@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PADH@Z */ /* ?pubsetbuf@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEAD_J@Z */ +#if STREAMSIZE_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubsetbuf, 16) +#else DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubsetbuf, 12) +#endif basic_streambuf_char* __thiscall basic_streambuf_char_pubsetbuf(basic_streambuf_char *this, char *buf, streamsize count) { TRACE("(%p %p %s)\n", this, buf, wine_dbgstr_longlong(count)); @@ -1461,7 +1489,11 @@ int __thiscall basic_streambuf_char_pubsync(basic_streambuf_char *this) /* ?sgetn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHPADH@Z */ /* ?sgetn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA_JPEAD_J@Z */ +#if STREAMSIZE_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sgetn, 16) +#else DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sgetn, 12) +#endif streamsize __thiscall basic_streambuf_char_sgetn(basic_streambuf_char *this, char *ptr, streamsize count) { TRACE("(%p %p %s)\n", this, ptr, wine_dbgstr_longlong(count)); @@ -1580,7 +1612,11 @@ int __thiscall basic_streambuf_char_snextc(basic_streambuf_char *this) /* ?xsgetn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHPADH@Z */ /* ?xsgetn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA_JPEAD_J@Z */ +#if STREAMSIZE_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_streambuf_char_xsgetn, 16) +#else DEFINE_THISCALL_WRAPPER(basic_streambuf_char_xsgetn, 12) +#endif #define call_basic_streambuf_char_xsgetn(this, ptr, count) CALL_VTBL_FUNC(this, 24, \ streamsize, (basic_streambuf_char*, char*, streamsize), (this, ptr, count)) streamsize __thiscall basic_streambuf_char_xsgetn(basic_streambuf_char *this, char *ptr, streamsize count) @@ -1591,7 +1627,11 @@ streamsize __thiscall basic_streambuf_char_xsgetn(basic_streambuf_char *this, ch /* ?xsputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHPBDH@Z */ /* ?xsputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA_JPEBD_J@Z */ +#if STREAMSIZE_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_streambuf_char_xsputn, 16) +#else DEFINE_THISCALL_WRAPPER(basic_streambuf_char_xsputn, 12) +#endif #if _MSVCP_VER >= 80 #define call_basic_streambuf_char_xsputn(this, ptr, count) CALL_VTBL_FUNC(this, 32, \ streamsize, (basic_streambuf_char*, const char*, streamsize), (this, ptr, count)) @@ -1627,7 +1667,11 @@ streamsize __thiscall basic_streambuf_char_xsputn(basic_streambuf_char *this, co /* ?sputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHPBDH@Z */ /* ?sputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA_JPEBD_J@Z */ +#if STREAMSIZE_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sputn, 16) +#else DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sputn, 12) +#endif streamsize __thiscall basic_streambuf_char_sputn(basic_streambuf_char *this, const char *ptr, streamsize count) { TRACE("(%p %p %s)\n", this, ptr, wine_dbgstr_longlong(count)); @@ -1914,7 +1958,11 @@ unsigned short __thiscall basic_streambuf_wchar_uflow(basic_streambuf_wchar *thi /* ?_Xsgetn_s@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA_JPEA_W_K_J@Z */ /* ?_Xsgetn_s@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEHPAGIH@Z */ /* ?_Xsgetn_s@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA_JPEAG_K_J@Z */ +#if STREAMSIZE_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Xsgetn_s, 20) +#else DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Xsgetn_s, 16) +#endif #if _MSVCP_VER >= 80 #define call_basic_streambuf_wchar__Xsgetn_s(this, ptr, size, count) CALL_VTBL_FUNC(this, 28, \ streamsize, (basic_streambuf_wchar*, wchar_t*, MSVCP_size_t, streamsize), (this, ptr, size, count)) @@ -1955,7 +2003,11 @@ streamsize __thiscall basic_streambuf_wchar__Xsgetn_s(basic_streambuf_wchar *thi /* ?_Sgetn_s@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA_JPEA_W_K_J@Z */ /* ?_Sgetn_s@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEHPAGIH@Z */ /* ?_Sgetn_s@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA_JPEAG_K_J@Z */ +#if STREAMSIZE_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Sgetn_s, 20) +#else DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Sgetn_s, 16) +#endif streamsize __thiscall basic_streambuf_wchar__Sgetn_s(basic_streambuf_wchar *this, wchar_t *ptr, MSVCP_size_t size, streamsize count) { TRACE("(%p %p %lu %s)\n", this, ptr, size, wine_dbgstr_longlong(count)); @@ -2135,7 +2187,11 @@ locale* __thiscall basic_streambuf_wchar_pubimbue(basic_streambuf_wchar *this, l /* ?seekoff@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */ /* ?seekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAE?AV?$fpos@H@2@JHH@Z */ /* ?seekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */ +#if STREAMOFF_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_seekoff, 24) +#else DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_seekoff, 20) +#endif #if _MSVCP_VER >= 80 #define call_basic_streambuf_wchar_seekoff(this, ret, off, way, mode) CALL_VTBL_FUNC(this, 36, \ fpos_int*, (basic_streambuf_wchar*, fpos_int*, streamoff, int, int), (this, ret, off, way, mode)) @@ -2157,7 +2213,11 @@ fpos_int* __thiscall basic_streambuf_wchar_seekoff(basic_streambuf_wchar *this, /* ?pubseekoff@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@H@2@_JHH@Z */ /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@JHH@Z */ /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@_JHH@Z */ +#if STREAMOFF_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubseekoff, 24) +#else DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubseekoff, 20) +#endif fpos_int* __thiscall basic_streambuf_wchar_pubseekoff(basic_streambuf_wchar *this, fpos_int *ret, streamoff off, int way, int mode) { @@ -2169,7 +2229,11 @@ fpos_int* __thiscall basic_streambuf_wchar_pubseekoff(basic_streambuf_wchar *thi /* ?pubseekoff@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@H@2@_JII@Z */ /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@JII@Z */ /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@_JII@Z */ +#if STREAMOFF_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubseekoff_old, 24) +#else DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubseekoff_old, 20) +#endif fpos_int* __thiscall basic_streambuf_wchar_pubseekoff_old(basic_streambuf_wchar *this, fpos_int *ret, streamoff off, unsigned int way, unsigned int mode) { @@ -2227,7 +2291,11 @@ fpos_int* __thiscall basic_streambuf_wchar_pubseekpos_old(basic_streambuf_wchar /* ?setbuf@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAPEAV12@PEA_W_J@Z */ /* ?setbuf@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEPAV12@PAGH@Z */ /* ?setbuf@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAPEAV12@PEAG_J@Z */ +#if STREAMSIZE_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_setbuf, 16) +#else DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_setbuf, 12) +#endif #if _MSVCP_VER >= 80 #define call_basic_streambuf_wchar_setbuf(this, buf, count) CALL_VTBL_FUNC(this, 44, \ basic_streambuf_wchar*, (basic_streambuf_wchar*, wchar_t*, streamsize), (this, buf, count)) @@ -2245,7 +2313,11 @@ basic_streambuf_wchar* __thiscall basic_streambuf_wchar_setbuf(basic_streambuf_w /* ?pubsetbuf@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEA_W_J@Z */ /* ?pubsetbuf@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PAGH@Z */ /* ?pubsetbuf@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEAG_J@Z */ +#if STREAMSIZE_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubsetbuf, 16) +#else DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubsetbuf, 12) +#endif basic_streambuf_wchar* __thiscall basic_streambuf_wchar_pubsetbuf(basic_streambuf_wchar *this, wchar_t *buf, streamsize count) { TRACE("(%p %p %s)\n", this, buf, wine_dbgstr_longlong(count)); @@ -2285,7 +2357,11 @@ int __thiscall basic_streambuf_wchar_pubsync(basic_streambuf_wchar *this) /* ?xsgetn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA_JPEA_W_J@Z */ /* ?xsgetn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEHPAGH@Z */ /* ?xsgetn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA_JPEAG_J@Z */ +#if STREAMSIZE_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_xsgetn, 16) +#else DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_xsgetn, 12) +#endif #define call_basic_streambuf_wchar_xsgetn(this, ptr, count) CALL_VTBL_FUNC(this, 24, \ streamsize, (basic_streambuf_wchar*, wchar_t*, streamsize), (this, ptr, count)) streamsize __thiscall basic_streambuf_wchar_xsgetn(basic_streambuf_wchar *this, wchar_t *ptr, streamsize count) @@ -2298,7 +2374,11 @@ streamsize __thiscall basic_streambuf_wchar_xsgetn(basic_streambuf_wchar *this, /* ?sgetn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA_JPEA_W_J@Z */ /* ?sgetn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEHPAGH@Z */ /* ?sgetn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA_JPEAG_J@Z */ +#if STREAMSIZE_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sgetn, 16) +#else DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sgetn, 12) +#endif streamsize __thiscall basic_streambuf_wchar_sgetn(basic_streambuf_wchar *this, wchar_t *ptr, streamsize count) { TRACE("(%p %p %s)\n", this, ptr, wine_dbgstr_longlong(count)); @@ -2437,7 +2517,11 @@ unsigned short __thiscall basic_streambuf_wchar_snextc(basic_streambuf_wchar *th /* ?xsputn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA_JPEB_W_J@Z */ /* ?xsputn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEHPBGH@Z */ /* ?xsputn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA_JPEBG_J@Z */ +#if STREAMSIZE_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_xsputn, 16) +#else DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_xsputn, 12) +#endif #if _MSVCP_VER >= 80 #define call_basic_streambuf_wchar_xsputn(this, ptr, count) CALL_VTBL_FUNC(this, 32, \ streamsize, (basic_streambuf_wchar*, const wchar_t*, streamsize), (this, ptr, count)) @@ -2475,7 +2559,11 @@ streamsize __thiscall basic_streambuf_wchar_xsputn(basic_streambuf_wchar *this, /* ?sputn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA_JPEB_W_J@Z */ /* ?sputn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEHPBGH@Z */ /* ?sputn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA_JPEBG_J@Z */ +#if STREAMSIZE_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sputn, 16) +#else DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sputn, 12) +#endif streamsize __thiscall basic_streambuf_wchar_sputn(basic_streambuf_wchar *this, const wchar_t *ptr, streamsize count) { TRACE("(%p %p %s)\n", this, ptr, wine_dbgstr_longlong(count)); @@ -2945,7 +3033,11 @@ int __thiscall basic_filebuf_char_underflow(basic_filebuf_char *this) /* ?seekoff@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAE?AV?$fpos@H@2@JHH@Z */ /* ?seekoff@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */ +#if STREAMOFF_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_filebuf_char_seekoff, 24) +#else DEFINE_THISCALL_WRAPPER(basic_filebuf_char_seekoff, 20) +#endif fpos_int* __thiscall basic_filebuf_char_seekoff(basic_filebuf_char *this, fpos_int *ret, streamoff off, int way, int mode) { @@ -2996,7 +3088,11 @@ fpos_int* __thiscall basic_filebuf_char_seekpos(basic_filebuf_char *this, /* ?setbuf@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEPAV?$basic_streambuf@DU?$char_traits@D@std@@@2@PADH@Z */ /* ?setbuf@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAPEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@PEAD_J@Z */ +#if STREAMSIZE_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_filebuf_char_setbuf, 16) +#else DEFINE_THISCALL_WRAPPER(basic_filebuf_char_setbuf, 12) +#endif basic_streambuf_char* __thiscall basic_filebuf_char_setbuf(basic_filebuf_char *this, char *buf, streamsize count) { TRACE("(%p %p %s)\n", this, buf, wine_dbgstr_longlong(count)); @@ -3555,7 +3651,11 @@ unsigned short __thiscall basic_filebuf_wchar_underflow(basic_filebuf_wchar *thi /* ?seekoff@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */ /* ?seekoff@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAE?AV?$fpos@H@2@JHH@Z */ /* ?seekoff@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */ +#if STREAMOFF_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_seekoff, 24) +#else DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_seekoff, 20) +#endif fpos_int* __thiscall basic_filebuf_wchar_seekoff(basic_filebuf_wchar *this, fpos_int *ret, streamoff off, int way, int mode) { @@ -3618,7 +3718,11 @@ fpos_int* __thiscall basic_filebuf_wchar_seekpos(basic_filebuf_wchar *this, /* ?setbuf@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEPAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@PA_WH@Z */ /* ?setbuf@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAPEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@PEA_W_J@Z */ +#if STREAMSIZE_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_setbuf, 16) +#else DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_setbuf, 12) +#endif basic_streambuf_wchar* __thiscall basic_filebuf_wchar_setbuf(basic_filebuf_wchar *this, wchar_t *buf, streamsize count) { TRACE("(%p %p %s)\n", this, buf, wine_dbgstr_longlong(count)); @@ -3635,7 +3739,11 @@ basic_streambuf_wchar* __thiscall basic_filebuf_wchar_setbuf(basic_filebuf_wchar /* ?setbuf@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEPAV?$basic_streambuf@GU?$char_traits@G@std@@@2@PAGH@Z */ /* ?setbuf@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAPEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@PEAG_J@Z */ +#if STREAMSIZE_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_filebuf_short_setbuf, 16) +#else DEFINE_THISCALL_WRAPPER(basic_filebuf_short_setbuf, 12) +#endif basic_streambuf_wchar* __thiscall basic_filebuf_short_setbuf(basic_filebuf_wchar *this, wchar_t *buf, streamsize count) { TRACE("(%p %p %s)\n", this, buf, wine_dbgstr_longlong(count)); @@ -3941,7 +4049,11 @@ int __thiscall basic_stringbuf_char_underflow(basic_stringbuf_char *this) /* ?seekoff@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAE?AV?$fpos@H@2@JHH@Z */ /* ?seekoff@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */ +#if STREAMOFF_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_seekoff, 24) +#else DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_seekoff, 20) +#endif fpos_int* __thiscall basic_stringbuf_char_seekoff(basic_stringbuf_char *this, fpos_int *ret, streamoff off, int way, int mode) { @@ -4352,7 +4464,11 @@ unsigned short __thiscall basic_stringbuf_wchar_underflow(basic_stringbuf_wchar /* ?seekoff@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */ /* ?seekoff@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MAE?AV?$fpos@H@2@JHH@Z */ /* ?seekoff@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */ +#if STREAMOFF_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_seekoff, 24) +#else DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_seekoff, 20) +#endif fpos_int* __thiscall basic_stringbuf_wchar_seekoff(basic_stringbuf_wchar *this, fpos_int *ret, streamoff off, int way, int mode) { @@ -4900,7 +5016,11 @@ locale* __thiscall ios_base_imbue(ios_base *this, locale *ret, const locale *loc /* ?precision@ios_base@std@@QAEHH@Z */ /* ?precision@ios_base@std@@QEAA_J_J@Z */ +#if STREAMSIZE_BITS == 64 +DEFINE_THISCALL_WRAPPER(ios_base_precision_set, 12) +#else DEFINE_THISCALL_WRAPPER(ios_base_precision_set, 8) +#endif streamsize __thiscall ios_base_precision_set(ios_base *this, streamsize precision) { streamsize ret = this->prec; @@ -5003,7 +5123,11 @@ void __thiscall ios_base_unsetf(ios_base *this, IOSB_fmtflags flags) /* ?width@ios_base@std@@QAEHH@Z */ /* ?width@ios_base@std@@QEAA_J_J@Z */ +#if STREAMSIZE_BITS == 64 +DEFINE_THISCALL_WRAPPER(ios_base_width_set, 12) +#else DEFINE_THISCALL_WRAPPER(ios_base_width_set, 8) +#endif streamsize __thiscall ios_base_width_set(ios_base *this, streamsize width) { streamsize ret = this->wide; @@ -5749,7 +5873,11 @@ basic_ostream_char* __thiscall basic_ostream_char_put(basic_ostream_char *this, /* ?seekp@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@JH@Z */ /* ?seekp@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@_JH@Z */ +#if STREAMOFF_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_ostream_char_seekp, 16) +#else DEFINE_THISCALL_WRAPPER(basic_ostream_char_seekp, 12) +#endif basic_ostream_char* __thiscall basic_ostream_char_seekp(basic_ostream_char *this, streamoff off, int way) { basic_ios_char *base = basic_ostream_char_get_basic_ios(this); @@ -5809,7 +5937,11 @@ fpos_int* __thiscall basic_ostream_char_tellp(basic_ostream_char *this, fpos_int /* ?write@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@PBDH@Z */ /* ?write@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEBD_J@Z */ +#if STREAMSIZE_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_ostream_char_write, 16) +#else DEFINE_THISCALL_WRAPPER(basic_ostream_char_write, 12) +#endif basic_ostream_char* __thiscall basic_ostream_char_write(basic_ostream_char *this, const char *str, streamsize count) { basic_ios_char *base = basic_ostream_char_get_basic_ios(this); @@ -6568,7 +6700,11 @@ basic_ostream_wchar* __thiscall basic_ostream_wchar_put(basic_ostream_wchar *thi /* ?seekp@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@_JH@Z */ /* ?seekp@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV12@JH@Z */ /* ?seekp@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@_JH@Z */ +#if STREAMOFF_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_seekp, 16) +#else DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_seekp, 12) +#endif basic_ostream_wchar* __thiscall basic_ostream_wchar_seekp(basic_ostream_wchar *this, streamoff off, int way) { basic_ios_wchar *base = basic_ostream_wchar_get_basic_ios(this); @@ -6634,7 +6770,11 @@ fpos_int* __thiscall basic_ostream_wchar_tellp(basic_ostream_wchar *this, fpos_i /* ?write@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEB_W_J@Z */ /* ?write@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV12@PBGH@Z */ /* ?write@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEBG_J@Z */ +#if STREAMSIZE_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_write, 16) +#else DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_write, 12) +#endif basic_ostream_wchar* __thiscall basic_ostream_wchar_write(basic_ostream_wchar *this, const wchar_t *str, streamsize count) { basic_ios_wchar *base = basic_ostream_wchar_get_basic_ios(this); @@ -7549,7 +7689,11 @@ basic_istream_char* __thiscall basic_istream_char_get_ch(basic_istream_char *thi /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADHD@Z */ /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_JD@Z */ +#if STREAMSIZE_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_istream_char_get_str_delim, 20) +#else DEFINE_THISCALL_WRAPPER(basic_istream_char_get_str_delim, 16) +#endif basic_istream_char* __thiscall basic_istream_char_get_str_delim(basic_istream_char *this, char *str, streamsize count, char delim) { basic_ios_char *base = basic_istream_char_get_basic_ios(this); @@ -7583,7 +7727,11 @@ basic_istream_char* __thiscall basic_istream_char_get_str_delim(basic_istream_ch /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADH@Z */ /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_J@Z */ +#if STREAMSIZE_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_istream_char_get_str, 16) +#else DEFINE_THISCALL_WRAPPER(basic_istream_char_get_str, 12) +#endif basic_istream_char* __thiscall basic_istream_char_get_str(basic_istream_char *this, char *str, streamsize count) { return basic_istream_char_get_str_delim(this, str, count, '\n'); @@ -7631,7 +7779,11 @@ basic_istream_char* __thiscall basic_istream_char_get_streambuf(basic_istream_ch /* ?getline@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADHD@Z */ /* ?getline@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_JD@Z */ +#if STREAMSIZE_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_istream_char_getline_delim, 20) +#else DEFINE_THISCALL_WRAPPER(basic_istream_char_getline_delim, 16) +#endif basic_istream_char* __thiscall basic_istream_char_getline_delim(basic_istream_char *this, char *str, streamsize count, char delim) { basic_ios_char *base = basic_istream_char_get_basic_ios(this); @@ -7677,7 +7829,11 @@ basic_istream_char* __thiscall basic_istream_char_getline_delim(basic_istream_ch /* ?getline@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADH@Z */ /* ?getline@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_J@Z */ +#if STREAMSIZE_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_istream_char_getline, 16) +#else DEFINE_THISCALL_WRAPPER(basic_istream_char_getline, 12) +#endif basic_istream_char* __thiscall basic_istream_char_getline(basic_istream_char *this, char *str, streamsize count) { return basic_istream_char_getline_delim(this, str, count, '\n'); @@ -7685,7 +7841,11 @@ basic_istream_char* __thiscall basic_istream_char_getline(basic_istream_char *th /* ?ignore@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@HH@Z */ /* ?ignore@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@_JH@Z */ +#if STREAMSIZE_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_istream_char_ignore, 16) +#else DEFINE_THISCALL_WRAPPER(basic_istream_char_ignore, 12) +#endif basic_istream_char* __thiscall basic_istream_char_ignore(basic_istream_char *this, streamsize count, int delim) { basic_ios_char *base = basic_istream_char_get_basic_ios(this); @@ -7773,7 +7933,11 @@ int __thiscall basic_istream_char_peek(basic_istream_char *this) /* ?_Read_s@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADIH@Z */ /* ?_Read_s@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_K_J@Z */ +#if STREAMSIZE_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_istream_char__Read_s, 20) +#else DEFINE_THISCALL_WRAPPER(basic_istream_char__Read_s, 16) +#endif basic_istream_char* __thiscall basic_istream_char__Read_s(basic_istream_char *this, char *str, MSVCP_size_t size, streamsize count) { basic_ios_char *base = basic_istream_char_get_basic_ios(this); @@ -7798,7 +7962,11 @@ basic_istream_char* __thiscall basic_istream_char__Read_s(basic_istream_char *th /* ?read@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADH@Z */ /* ?read@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_J@Z */ +#if STREAMSIZE_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_istream_char_read, 16) +#else DEFINE_THISCALL_WRAPPER(basic_istream_char_read, 12) +#endif basic_istream_char* __thiscall basic_istream_char_read(basic_istream_char *this, char *str, streamsize count) { return basic_istream_char__Read_s(this, str, count, count); @@ -7806,7 +7974,11 @@ basic_istream_char* __thiscall basic_istream_char_read(basic_istream_char *this, /* ?_Readsome_s@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEHPADIH@Z */ /* ?_Readsome_s@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA_JPEAD_K_J@Z */ +#if STREAMSIZE_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_istream_char__Readsome_s, 20) +#else DEFINE_THISCALL_WRAPPER(basic_istream_char__Readsome_s, 16) +#endif streamsize __thiscall basic_istream_char__Readsome_s(basic_istream_char *this, char *str, MSVCP_size_t size, streamsize count) { basic_ios_char *base = basic_istream_char_get_basic_ios(this); @@ -7836,7 +8008,11 @@ streamsize __thiscall basic_istream_char__Readsome_s(basic_istream_char *this, c /* ?readsome@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEHPADH@Z */ /* ?readsome@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA_JPEAD_J@Z */ +#if STREAMSIZE_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_istream_char_readsome, 16) +#else DEFINE_THISCALL_WRAPPER(basic_istream_char_readsome, 12) +#endif streamsize __thiscall basic_istream_char_readsome(basic_istream_char *this, char *str, streamsize count) { return basic_istream_char__Readsome_s(this, str, count, count); @@ -7946,7 +8122,11 @@ fpos_int* __thiscall basic_istream_char_tellg(basic_istream_char *this, fpos_int /* ?seekg@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@JH@Z */ /* ?seekg@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@_JH@Z */ +#if STREAMOFF_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_istream_char_seekg, 16) +#else DEFINE_THISCALL_WRAPPER(basic_istream_char_seekg, 12) +#endif basic_istream_char* __thiscall basic_istream_char_seekg(basic_istream_char *this, streamoff off, int dir) { basic_ios_char *base = basic_istream_char_get_basic_ios(this); @@ -8796,7 +8976,11 @@ basic_istream_wchar* __thiscall basic_istream_wchar_get_ch(basic_istream_wchar * /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_J_W@Z */ /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@PAGHG@Z */ /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_JG@Z */ +#if STREAMSIZE_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_str_delim, 20) +#else DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_str_delim, 16) +#endif basic_istream_wchar* __thiscall basic_istream_wchar_get_str_delim(basic_istream_wchar *this, wchar_t *str, streamsize count, wchar_t delim) { basic_ios_wchar *base = basic_istream_wchar_get_basic_ios(this); @@ -8832,7 +9016,11 @@ basic_istream_wchar* __thiscall basic_istream_wchar_get_str_delim(basic_istream_ /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_J@Z */ /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@PAGH@Z */ /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_J@Z */ +#if STREAMSIZE_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_str, 16) +#else DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_str, 12) +#endif basic_istream_wchar* __thiscall basic_istream_wchar_get_str(basic_istream_wchar *this, wchar_t *str, streamsize count) { return basic_istream_wchar_get_str_delim(this, str, count, '\n'); @@ -8886,7 +9074,11 @@ basic_istream_wchar* __thiscall basic_istream_wchar_get_streambuf(basic_istream_ /* ?getline@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_J_W@Z */ /* ?getline@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@PAGHG@Z */ /* ?getline@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_JG@Z */ +#if STREAMSIZE_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_istream_wchar_getline_delim, 20) +#else DEFINE_THISCALL_WRAPPER(basic_istream_wchar_getline_delim, 16) +#endif basic_istream_wchar* __thiscall basic_istream_wchar_getline_delim(basic_istream_wchar *this, wchar_t *str, streamsize count, wchar_t delim) { basic_ios_wchar *base = basic_istream_wchar_get_basic_ios(this); @@ -8934,7 +9126,11 @@ basic_istream_wchar* __thiscall basic_istream_wchar_getline_delim(basic_istream_ /* ?getline@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_J@Z */ /* ?getline@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@PAGH@Z */ /* ?getline@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_J@Z */ +#if STREAMSIZE_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_istream_wchar_getline, 16) +#else DEFINE_THISCALL_WRAPPER(basic_istream_wchar_getline, 12) +#endif basic_istream_wchar* __thiscall basic_istream_wchar_getline(basic_istream_wchar *this, wchar_t *str, streamsize count) { return basic_istream_wchar_getline_delim(this, str, count, '\n'); @@ -8944,7 +9140,11 @@ basic_istream_wchar* __thiscall basic_istream_wchar_getline(basic_istream_wchar /* ?ignore@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@_JG@Z */ /* ?ignore@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@HG@Z */ /* ?ignore@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@_JG@Z */ +#if STREAMSIZE_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_istream_wchar_ignore, 16) +#else DEFINE_THISCALL_WRAPPER(basic_istream_wchar_ignore, 12) +#endif basic_istream_wchar* __thiscall basic_istream_wchar_ignore(basic_istream_wchar *this, streamsize count, unsigned short delim) { basic_ios_wchar *base = basic_istream_wchar_get_basic_ios(this); @@ -9038,7 +9238,11 @@ unsigned short __thiscall basic_istream_wchar_peek(basic_istream_wchar *this) /* ?_Read_s@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_K_J@Z */ /* ?_Read_s@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@PAGIH@Z */ /* ?_Read_s@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_K_J@Z */ +#if STREAMSIZE_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_istream_wchar__Read_s, 20) +#else DEFINE_THISCALL_WRAPPER(basic_istream_wchar__Read_s, 16) +#endif basic_istream_wchar* __thiscall basic_istream_wchar__Read_s(basic_istream_wchar *this, wchar_t *str, MSVCP_size_t size, streamsize count) { basic_ios_wchar *base = basic_istream_wchar_get_basic_ios(this); @@ -9065,7 +9269,11 @@ basic_istream_wchar* __thiscall basic_istream_wchar__Read_s(basic_istream_wchar /* ?read@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_J@Z */ /* ?read@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@PAGH@Z */ /* ?read@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_J@Z */ +#if STREAMSIZE_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read, 16) +#else DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read, 12) +#endif basic_istream_wchar* __thiscall basic_istream_wchar_read(basic_istream_wchar *this, wchar_t *str, streamsize count) { return basic_istream_wchar__Read_s(this, str, count, count); @@ -9075,7 +9283,11 @@ basic_istream_wchar* __thiscall basic_istream_wchar_read(basic_istream_wchar *th /* ?_Readsome_s@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA_JPEA_W_K_J@Z */ /* ?_Readsome_s@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEHPAGIH@Z */ /* ?_Readsome_s@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA_JPEAG_K_J@Z */ +#if STREAMSIZE_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_istream_wchar__Readsome_s, 20) +#else DEFINE_THISCALL_WRAPPER(basic_istream_wchar__Readsome_s, 16) +#endif streamsize __thiscall basic_istream_wchar__Readsome_s(basic_istream_wchar *this, wchar_t *str, MSVCP_size_t size, streamsize count) { basic_ios_wchar *base = basic_istream_wchar_get_basic_ios(this); @@ -9107,7 +9319,11 @@ streamsize __thiscall basic_istream_wchar__Readsome_s(basic_istream_wchar *this, /* ?readsome@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA_JPEA_W_J@Z */ /* ?readsome@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEHPAGH@Z */ /* ?readsome@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA_JPEAG_J@Z */ +#if STREAMSIZE_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_istream_wchar_readsome, 16) +#else DEFINE_THISCALL_WRAPPER(basic_istream_wchar_readsome, 12) +#endif streamsize __thiscall basic_istream_wchar_readsome(basic_istream_wchar *this, wchar_t *str, streamsize count) { return basic_istream_wchar__Readsome_s(this, str, count, count); @@ -9226,7 +9442,11 @@ fpos_int* __thiscall basic_istream_wchar_tellg(basic_istream_wchar *this, fpos_i /* ?seekg@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@_JH@Z */ /* ?seekg@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@JH@Z */ /* ?seekg@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@_JH@Z */ +#if STREAMOFF_BITS == 64 +DEFINE_THISCALL_WRAPPER(basic_istream_wchar_seekg, 16) +#else DEFINE_THISCALL_WRAPPER(basic_istream_wchar_seekg, 12) +#endif basic_istream_wchar* __thiscall basic_istream_wchar_seekg(basic_istream_wchar *this, streamoff off, int dir) { basic_ios_wchar *base = basic_istream_wchar_get_basic_ios(this); @@ -12674,7 +12894,11 @@ basic_string_wchar* __thiscall basic_stringstream_wchar_str_get(const basic_stri /* ?_Init@strstreambuf@std@@IAEXHPAD0H@Z */ /* ?_Init@strstreambuf@std@@IEAAX_JPEAD1H@Z */ +#if STREAMSIZE_BITS == 64 +DEFINE_THISCALL_WRAPPER(strstreambuf__Init, 24) +#else DEFINE_THISCALL_WRAPPER(strstreambuf__Init, 20) +#endif void __thiscall strstreambuf__Init(strstreambuf *this, streamsize len, char *g, char *p, int mode) { TRACE("(%p %s %p %p %d)\n", this, wine_dbgstr_longlong(len), g, p, mode); @@ -12710,7 +12934,11 @@ void __thiscall strstreambuf__Init(strstreambuf *this, streamsize len, char *g, /* ??0strstreambuf@std@@QEAA@PEAD_J0@Z */ /* ??0strstreambuf@std@@QAE@PAEH0@Z */ /* ??0strstreambuf@std@@QEAA@PEAE_J0@Z */ +#if STREAMSIZE_BITS == 64 +DEFINE_THISCALL_WRAPPER(strstreambuf_ctor_get_put, 20) +#else DEFINE_THISCALL_WRAPPER(strstreambuf_ctor_get_put, 16) +#endif strstreambuf* __thiscall strstreambuf_ctor_get_put(strstreambuf *this, char *g, streamsize len, char *p) { TRACE("(%p %p %s %p)\n", this, g, wine_dbgstr_longlong(len), p); @@ -12724,7 +12952,11 @@ strstreambuf* __thiscall strstreambuf_ctor_get_put(strstreambuf *this, char *g, /* ??0strstreambuf@std@@QAE@H@Z */ /* ??0strstreambuf@std@@QEAA@_J@Z */ +#if STREAMSIZE_BITS == 64 +DEFINE_THISCALL_WRAPPER(strstreambuf_ctor_len, 12) +#else DEFINE_THISCALL_WRAPPER(strstreambuf_ctor_len, 8) +#endif strstreambuf* __thiscall strstreambuf_ctor_len(strstreambuf *this, streamsize len) { return strstreambuf_ctor_get_put(this, NULL, len, NULL); @@ -12749,7 +12981,11 @@ strstreambuf* __thiscall strstreambuf_ctor_alloc(strstreambuf *this, void* (__cd /* ??0strstreambuf@std@@QEAA@PEBD_J@Z */ /* ??0strstreambuf@std@@QAE@PBEH@Z */ /* ??0strstreambuf@std@@QEAA@PEBE_J@Z */ +#if STREAMSIZE_BITS == 64 +DEFINE_THISCALL_WRAPPER(strstreambuf_ctor_get, 16) +#else DEFINE_THISCALL_WRAPPER(strstreambuf_ctor_get, 12) +#endif strstreambuf* __thiscall strstreambuf_ctor_get(strstreambuf *this, const char *g, streamsize len) { TRACE("(%p %p %s)\n", this, g, wine_dbgstr_longlong(len)); @@ -12949,7 +13185,11 @@ int __thiscall strstreambuf_pbackfail(strstreambuf *this, int c) /* ?seekoff@strstreambuf@std@@MAE?AV?$fpos@H@2@JHH@Z */ /* ?seekoff@strstreambuf@std@@MEAA?AV?$fpos@H@2@_JHH@Z */ +#if STREAMOFF_BITS == 64 +DEFINE_THISCALL_WRAPPER(strstreambuf_seekoff, 24) +#else DEFINE_THISCALL_WRAPPER(strstreambuf_seekoff, 20) +#endif fpos_int* __thiscall strstreambuf_seekoff(strstreambuf *this, fpos_int *ret, streamoff off, int way, int mode) { char *eback = basic_streambuf_char_eback(&this->base); @@ -13055,7 +13295,11 @@ static inline ostrstream* ostrstream_from_basic_ios(basic_ios_char *ptr) } /* ??0ostrstream@std@@QAE@PADHH@Z */ +#if STREAMSIZE_BITS == 64 +DEFINE_THISCALL_WRAPPER(ostrstream_ctor, 24) +#else DEFINE_THISCALL_WRAPPER(ostrstream_ctor, 20) +#endif ostrstream* __thiscall ostrstream_ctor(ostrstream *this, char *buf, streamsize size, int mode, MSVCP_bool virt_init) { basic_ios_char *basic_ios; @@ -13151,7 +13395,11 @@ static inline strstream* strstream_from_basic_ios(basic_ios_char *ptr) /* ??0strstream@std@@QAE@PADHH@Z */ /* ??0strstream@std@@QEAA@PEAD_JH@Z */ +#if STREAMSIZE_BITS == 64 +DEFINE_THISCALL_WRAPPER(strstream_ctor, 24) +#else DEFINE_THISCALL_WRAPPER(strstream_ctor, 20) +#endif strstream* __thiscall strstream_ctor(strstream *this, char *buf, streamsize size, int mode, MSVCP_bool virt_init) { basic_ios_char *basic_ios; diff --git a/dlls/msvcp90/msvcp90.h b/dlls/msvcp90/msvcp90.h index 1eccdc5bce0..497f06d9ff7 100644 --- a/dlls/msvcp90/msvcp90.h +++ b/dlls/msvcp90/msvcp90.h @@ -24,6 +24,8 @@ typedef unsigned char MSVCP_bool; typedef SIZE_T MSVCP_size_t; typedef SSIZE_T streamoff; typedef SSIZE_T streamsize; +#define STREAMOFF_BITS 32 +#define STREAMSIZE_BITS 32 void __cdecl _invalid_parameter(const wchar_t*, const wchar_t*, const wchar_t*, unsigned int, uintptr_t);