winehq.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
January
2003
December
November
October
September
August
July
June
May
April
March
February
January
2002
December
November
October
September
August
July
June
May
April
March
February
January
2001
December
November
October
September
August
July
June
May
April
March
February
List overview
wine-commits
August 2021
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
1 participants
1051 discussions
Start a n
N
ew thread
Jacek Caban : gdi32/tests: Add more char width tests.
by Alexandre Julliard
26 Aug '21
26 Aug '21
Module: wine Branch: master Commit: ba1769cb7d28e42537290ba6959255e26124d998 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=ba1769cb7d28e42537290ba6…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Thu Aug 26 13:45:12 2021 +0100 gdi32/tests: Add more char width tests. Signed-off-by: Jacek Caban <jacek(a)codeweavers.com> Signed-off-by: Huw Davies <huw(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/gdi32/tests/font.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/dlls/gdi32/tests/font.c b/dlls/gdi32/tests/font.c index ef1dc26595d..04fe6afd875 100644 --- a/dlls/gdi32/tests/font.c +++ b/dlls/gdi32/tests/font.c @@ -1127,6 +1127,12 @@ static void ABCWidths_helper(const char* description, HDC hdc, WORD *glyphs, con ok(abc->abcA * base_abci->abcA >= 0, "%s: abcA's sign should be unchanged\n", description); ok(abc->abcC * base_abci->abcC >= 0, "%s: abcC's sign should be unchanged\n", description); + ret = GetCharABCWidthsI(hdc, glyphs[0], 1, NULL, abc); + ok(ret, "%s: GetCharABCWidthsI should have succeeded\n", description); + ok ((INT)abc->abcB > 0, "%s: abcB should be positive\n", description); + ok(abc->abcA * base_abci->abcA >= 0, "%s: abcA's sign should be unchanged\n", description); + ok(abc->abcC * base_abci->abcC >= 0, "%s: abcC's sign should be unchanged\n", description); + ret = GetCharABCWidthsW(hdc, 'i', 'i', abc); ok(ret, "%s: GetCharABCWidthsW should have succeeded\n", description); ok ((INT)abc->abcB > 0, "%s: abcB should be positive\n", description); @@ -7009,8 +7015,9 @@ static void test_GetCharWidthI(void) HFONT hfont, prev_hfont; WORD glyphs[5]; INT widths[5]; + INT width; LOGFONTA lf; - ABC abc[5]; + ABC abc[5], abc1; int len, i; DWORD nb; BOOL ret; @@ -7033,10 +7040,20 @@ static void test_GetCharWidthI(void) ret = GetCharABCWidthsI(hdc, 0, len, glyphs, abc); ok(ret, "GetCharABCWidthsI failed\n"); + memset(&abc1, 0xcc, sizeof(abc1)); + ret = GetCharABCWidthsI(hdc, glyphs[0], 1, NULL, &abc1); + ok(ret, "GetCharABCWidthsI failed\n"); + ok(!memcmp(&abc1, abc, sizeof(abc1)), "unexpected abc1\n"); + memset(widths, 0xcc, sizeof(widths)); ret = GetCharWidthI(hdc, 0, len, glyphs, widths); ok(ret, "GetCharWidthI failed\n"); + width = 0xdeadbeef; + ret = GetCharWidthI(hdc, glyphs[0], 1, NULL, &width); + ok(ret, "GetCharWidthI failed\n"); + ok(width == widths[0], "unexpected width %u\n", width); + for (i = 0; i < len; i++) ok(widths[i] == abc[i].abcA + abc[i].abcB + abc[i].abcC, "%u, glyph %u, got width %d\n", i, glyphs[i], widths[i]);
1
0
0
0
Piotr Caban : msvcp90: Don't use throw_exception helper for bad_alloc exception.
by Alexandre Julliard
26 Aug '21
26 Aug '21
Module: wine Branch: master Commit: 1c09a7c5c4bd4ef851a42180396d87ea6cd500b9 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=1c09a7c5c4bd4ef851a42180…
Author: Piotr Caban <piotr(a)codeweavers.com> Date: Thu Aug 26 14:21:28 2021 +0200 msvcp90: Don't use throw_exception helper for bad_alloc exception. Signed-off-by: Piotr Caban <piotr(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/msvcp60/main.c | 2 +- dlls/msvcp60/msvcp.h | 1 + dlls/msvcp90/cxx.h | 1 - dlls/msvcp90/details.c | 2 +- dlls/msvcp90/exception.c | 21 ++++++++++++--------- dlls/msvcp90/memory.c | 12 ++---------- dlls/msvcp90/msvcp90.h | 3 ++- dlls/msvcp90/msvcp_main.c | 5 ++--- 8 files changed, 21 insertions(+), 26 deletions(-) diff --git a/dlls/msvcp60/main.c b/dlls/msvcp60/main.c index 9d77fd190ca..cecea919bed 100644 --- a/dlls/msvcp60/main.c +++ b/dlls/msvcp60/main.c @@ -65,7 +65,7 @@ void* (__cdecl *MSVCRT_set_new_handler)(void*); void* __cdecl operator_new(size_t size) { void *ret = MSVCRT_operator_new(size); - if (!ret) throw_exception(EXCEPTION_BAD_ALLOC, "bad allocation"); + if (!ret) _Xmem(); return ret; } diff --git a/dlls/msvcp60/msvcp.h b/dlls/msvcp60/msvcp.h index d60a588b3eb..1f53a31ad97 100644 --- a/dlls/msvcp60/msvcp.h +++ b/dlls/msvcp60/msvcp.h @@ -485,3 +485,4 @@ typedef struct { } complex_double; void WINAPI DECLSPEC_NORETURN _CxxThrowException(exception*,const cxx_exception_type*); +void __cdecl DECLSPEC_NORETURN _Xmem(void); diff --git a/dlls/msvcp90/cxx.h b/dlls/msvcp90/cxx.h index 50d78dbddb6..c1000579443 100644 --- a/dlls/msvcp90/cxx.h +++ b/dlls/msvcp90/cxx.h @@ -317,7 +317,6 @@ typedef struct __exception /* Internal: throws selected exception */ typedef enum __exception_type { EXCEPTION, - EXCEPTION_BAD_ALLOC, EXCEPTION_BAD_CAST, EXCEPTION_LOGIC_ERROR, EXCEPTION_LENGTH_ERROR, diff --git a/dlls/msvcp90/details.c b/dlls/msvcp90/details.c index b265bf1be71..d2c51b7ff0a 100644 --- a/dlls/msvcp90/details.c +++ b/dlls/msvcp90/details.c @@ -89,7 +89,7 @@ void __thiscall _Concurrent_queue_base_v4__Internal_throw_exception( const _Concurrent_queue_base_v4 *this) { TRACE("(%p)\n", this); - throw_exception(EXCEPTION_BAD_ALLOC, NULL); + _Xmem(); } /* ??0_Concurrent_queue_base_v4@details@Concurrency@@IAE@I@Z */ diff --git a/dlls/msvcp90/exception.c b/dlls/msvcp90/exception.c index eec72b9964d..115e0374f7f 100644 --- a/dlls/msvcp90/exception.c +++ b/dlls/msvcp90/exception.c @@ -867,17 +867,25 @@ DEFINE_RTTI_DATA2(range_error, 0, &runtime_error_rtti_base_descriptor, &exceptio DEFINE_CXX_DATA2(range_error, &runtime_error_cxx_type_info, &exception_cxx_type_info, MSVCP_runtime_error_dtor) /* ?_Nomemory@std@@YAXXZ */ -void __cdecl _Nomemory(void) +void __cdecl DECLSPEC_NORETURN _Nomemory(void) { + bad_alloc e; + TRACE("()\n"); - throw_exception(EXCEPTION_BAD_ALLOC, "bad allocation"); + + MSVCP_bad_alloc_default_ctor(&e); + _CxxThrowException(&e, &bad_alloc_cxx_type); } /* ?_Xmem@tr1@std@@YAXXZ */ -void __cdecl _Xmem(void) +void __cdecl DECLSPEC_NORETURN _Xmem(void) { + bad_alloc e; + TRACE("()\n"); - throw_exception(EXCEPTION_BAD_ALLOC, "bad allocation"); + + MSVCP_bad_alloc_default_ctor(&e); + _CxxThrowException(&e, &bad_alloc_cxx_type); } /* ?_Xinvalid_argument@std@@YAXPBD@Z */ @@ -1048,11 +1056,6 @@ void throw_exception(exception_type et, const char *str) MSVCP_exception_ctor(&e, name); _CxxThrowException(&e, &exception_cxx_type); } - case EXCEPTION_BAD_ALLOC: { - bad_alloc e; - MSVCP_bad_alloc_ctor(&e, name); - _CxxThrowException(&e, &bad_alloc_cxx_type); - } case EXCEPTION_BAD_CAST: { bad_cast e; MSVCP_bad_cast_ctor(&e, str); diff --git a/dlls/msvcp90/memory.c b/dlls/msvcp90/memory.c index 0e3fb2347e8..d1fe7ce5786 100644 --- a/dlls/msvcp90/memory.c +++ b/dlls/msvcp90/memory.c @@ -170,11 +170,7 @@ void __thiscall MSVCP_allocator_wchar_deallocate(void *this, DEFINE_THISCALL_WRAPPER(MSVCP_allocator_wchar_allocate, 8) wchar_t* __thiscall MSVCP_allocator_wchar_allocate(void *this, size_t count) { - if(UINT_MAX/count < sizeof(wchar_t)) { - throw_exception(EXCEPTION_BAD_ALLOC, NULL); - return NULL; - } - + if(UINT_MAX/count < sizeof(wchar_t)) _Xmem(); return operator_new(count * sizeof(wchar_t)); } @@ -269,11 +265,7 @@ DEFINE_THISCALL_WRAPPER(MSVCP_allocator_short_allocate, 8) unsigned short* __thiscall MSVCP_allocator_short_allocate( void *this, size_t count) { - if(UINT_MAX/count < sizeof(unsigned short)) { - throw_exception(EXCEPTION_BAD_ALLOC, NULL); - return NULL; - } - + if(UINT_MAX/count < sizeof(unsigned short)) _Xmem(); return operator_new(count * sizeof(unsigned short)); } diff --git a/dlls/msvcp90/msvcp90.h b/dlls/msvcp90/msvcp90.h index 94098d84135..0ef02b96ea8 100644 --- a/dlls/msvcp90/msvcp90.h +++ b/dlls/msvcp90/msvcp90.h @@ -663,4 +663,5 @@ static inline int mbstowcs_wrapper( size_t *ret, wchar_t *wcs, size_t size, cons #define hypotf( x, y ) ((float)hypot( (double)(x), (double)(y) )) #endif -void WINAPI _CxxThrowException(exception*,const cxx_exception_type*); +void WINAPI DECLSPEC_NORETURN _CxxThrowException(exception*,const cxx_exception_type*); +void __cdecl DECLSPEC_NORETURN _Xmem(void); diff --git a/dlls/msvcp90/msvcp_main.c b/dlls/msvcp90/msvcp_main.c index eed4beb41ac..7f61f59a078 100644 --- a/dlls/msvcp90/msvcp_main.c +++ b/dlls/msvcp90/msvcp_main.c @@ -94,8 +94,7 @@ void* __cdecl operator_new(size_t size) } while (freed); TRACE("(%Iu) out of memory\n", size); - throw_exception(EXCEPTION_BAD_ALLOC, "bad allocation"); - return NULL; + _Xmem(); } void __cdecl operator_delete(void *mem) @@ -116,7 +115,7 @@ void* __cdecl operator_new(size_t size) { void *ret = MSVCRT_operator_new(size); #if _MSVCP_VER < 80 - if (!ret) throw_exception(EXCEPTION_BAD_ALLOC, "bad allocation"); + if (!ret) _Xmem(); #endif return ret; }
1
0
0
0
Piotr Caban : msvcp90: Fix _Xmem and _Nomemory exception message.
by Alexandre Julliard
26 Aug '21
26 Aug '21
Module: wine Branch: master Commit: 5630ce26382cbf0eed29cdf9df68e087f188419f URL:
https://source.winehq.org/git/wine.git/?a=commit;h=5630ce26382cbf0eed29cdf9…
Author: Piotr Caban <piotr(a)codeweavers.com> Date: Thu Aug 26 14:21:19 2021 +0200 msvcp90: Fix _Xmem and _Nomemory exception message. Signed-off-by: Piotr Caban <piotr(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/msvcp90/exception.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/msvcp90/exception.c b/dlls/msvcp90/exception.c index 4eac9e92bc8..eec72b9964d 100644 --- a/dlls/msvcp90/exception.c +++ b/dlls/msvcp90/exception.c @@ -870,14 +870,14 @@ DEFINE_CXX_DATA2(range_error, &runtime_error_cxx_type_info, &exception_cxx_type_ void __cdecl _Nomemory(void) { TRACE("()\n"); - throw_exception(EXCEPTION_BAD_ALLOC, NULL); + throw_exception(EXCEPTION_BAD_ALLOC, "bad allocation"); } /* ?_Xmem@tr1@std@@YAXXZ */ void __cdecl _Xmem(void) { TRACE("()\n"); - throw_exception(EXCEPTION_BAD_ALLOC, NULL); + throw_exception(EXCEPTION_BAD_ALLOC, "bad allocation"); } /* ?_Xinvalid_argument@std@@YAXPBD@Z */
1
0
0
0
Piotr Caban : msvcp90: Don't use throw_exception helper for rethrow.
by Alexandre Julliard
26 Aug '21
26 Aug '21
Module: wine Branch: master Commit: eebc5c505e4eecb31d7829715b4bb1df393a9ea9 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=eebc5c505e4eecb31d782971…
Author: Piotr Caban <piotr(a)codeweavers.com> Date: Thu Aug 26 14:21:03 2021 +0200 msvcp90: Don't use throw_exception helper for rethrow. Signed-off-by: Piotr Caban <piotr(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/msvcp60/ios.c | 2 +- dlls/msvcp60/msvcp.h | 2 ++ dlls/msvcp90/cxx.h | 1 - dlls/msvcp90/details.c | 2 +- dlls/msvcp90/exception.c | 3 --- dlls/msvcp90/ios.c | 2 +- dlls/msvcp90/msvcp90.h | 2 ++ 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/dlls/msvcp60/ios.c b/dlls/msvcp60/ios.c index 764ec72e264..8657fd9b3e5 100644 --- a/dlls/msvcp60/ios.c +++ b/dlls/msvcp60/ios.c @@ -4847,7 +4847,7 @@ void __thiscall ios_base_clear_reraise(ios_base *this, IOSB_iostate state, bool return; if(reraise) - throw_exception(EXCEPTION_RERAISE, NULL); + _CxxThrowException(NULL, NULL); else if(this->state & this->except & IOSTATE_eofbit) throw_exception(EXCEPTION_FAILURE, "eofbit is set"); else if(this->state & this->except & IOSTATE_failbit) diff --git a/dlls/msvcp60/msvcp.h b/dlls/msvcp60/msvcp.h index fa42ba1b6be..d60a588b3eb 100644 --- a/dlls/msvcp60/msvcp.h +++ b/dlls/msvcp60/msvcp.h @@ -483,3 +483,5 @@ typedef struct { double real; double imag; } complex_double; + +void WINAPI DECLSPEC_NORETURN _CxxThrowException(exception*,const cxx_exception_type*); diff --git a/dlls/msvcp90/cxx.h b/dlls/msvcp90/cxx.h index 012354ac9c8..50d78dbddb6 100644 --- a/dlls/msvcp90/cxx.h +++ b/dlls/msvcp90/cxx.h @@ -316,7 +316,6 @@ typedef struct __exception /* Internal: throws selected exception */ typedef enum __exception_type { - EXCEPTION_RERAISE, EXCEPTION, EXCEPTION_BAD_ALLOC, EXCEPTION_BAD_CAST, diff --git a/dlls/msvcp90/details.c b/dlls/msvcp90/details.c index 4d3abf46141..b265bf1be71 100644 --- a/dlls/msvcp90/details.c +++ b/dlls/msvcp90/details.c @@ -526,7 +526,7 @@ static void concurrent_vector_alloc_segment(_Concurrent_vector_base_v4 *this, __EXCEPT_ALL { this->segment[seg] = NULL; - throw_exception(EXCEPTION_RERAISE, NULL); + _CxxThrowException(NULL, NULL); } __ENDTRY if(!this->segment[seg]) diff --git a/dlls/msvcp90/exception.c b/dlls/msvcp90/exception.c index 7b87c44c1af..4eac9e92bc8 100644 --- a/dlls/msvcp90/exception.c +++ b/dlls/msvcp90/exception.c @@ -31,7 +31,6 @@ CREATE_TYPE_INFO_VTABLE #define CLASS_IS_SIMPLE_TYPE 1 #define CLASS_HAS_VIRTUAL_BASE_CLASS 4 -void WINAPI _CxxThrowException(exception*,const cxx_exception_type*); int* __cdecl __processing_throw(void); #if _MSVCP_VER >= 70 || defined(_MSVCIRT) @@ -1044,8 +1043,6 @@ void throw_exception(exception_type et, const char *str) exception_name name = EXCEPTION_NAME(str); switch(et) { - case EXCEPTION_RERAISE: - _CxxThrowException(NULL, NULL); case EXCEPTION: { exception e; MSVCP_exception_ctor(&e, name); diff --git a/dlls/msvcp90/ios.c b/dlls/msvcp90/ios.c index ea0c8783491..8275635096a 100644 --- a/dlls/msvcp90/ios.c +++ b/dlls/msvcp90/ios.c @@ -5264,7 +5264,7 @@ void __thiscall ios_base_clear_reraise(ios_base *this, IOSB_iostate state, bool return; if(reraise) - throw_exception(EXCEPTION_RERAISE, NULL); + _CxxThrowException(NULL, NULL); else if(this->state & this->except & IOSTATE_eofbit) throw_exception(EXCEPTION_FAILURE, "eofbit is set"); else if(this->state & this->except & IOSTATE_failbit) diff --git a/dlls/msvcp90/msvcp90.h b/dlls/msvcp90/msvcp90.h index a525c8adc1e..94098d84135 100644 --- a/dlls/msvcp90/msvcp90.h +++ b/dlls/msvcp90/msvcp90.h @@ -662,3 +662,5 @@ static inline int mbstowcs_wrapper( size_t *ret, wchar_t *wcs, size_t size, cons #define mbstowcs_s( ret, wcs, size, mbs, count ) mbstowcs_wrapper( ret, wcs, size, mbs, count ) #define hypotf( x, y ) ((float)hypot( (double)(x), (double)(y) )) #endif + +void WINAPI _CxxThrowException(exception*,const cxx_exception_type*);
1
0
0
0
Piotr Caban : msvcp90: Remove MSVCP_SIZE_T_MAX definition.
by Alexandre Julliard
26 Aug '21
26 Aug '21
Module: wine Branch: master Commit: 38d6dbc6f7bf4fc01d76e12556984b31879d53a4 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=38d6dbc6f7bf4fc01d76e125…
Author: Piotr Caban <piotr(a)codeweavers.com> Date: Thu Aug 26 14:20:59 2021 +0200 msvcp90: Remove MSVCP_SIZE_T_MAX definition. Signed-off-by: Piotr Caban <piotr(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/msvcp90/details.c | 12 ++++++------ dlls/msvcp90/msvcp90.h | 1 - 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/dlls/msvcp90/details.c b/dlls/msvcp90/details.c index 4dc5c0ea98c..4d3abf46141 100644 --- a/dlls/msvcp90/details.c +++ b/dlls/msvcp90/details.c @@ -671,7 +671,7 @@ void * __thiscall _Concurrent_vector_base_v4__Internal_compact( (alloc_seg + 1) * sizeof(this->segment[0])); this->first_block = 0; _Concurrent_vector_base_v4__Internal_reserve(this, size, element_size, - MSVCP_SIZE_T_MAX / element_size); + ~(size_t)0 / element_size); for(i = 0; i < seg_no; i++) copy(this->segment[i], b->blocks[i], i ? 1 << i : 2); copy_element = size - ((1 << seg_no) & ~1); @@ -703,7 +703,7 @@ void __thiscall _Concurrent_vector_base_v4__Internal_copy( return; } _Concurrent_vector_base_v4__Internal_reserve(this, v_size, - element_size, MSVCP_SIZE_T_MAX / element_size); + element_size, ~(size_t)0 / element_size); seg_no = _vector_base_v4__Segment_index_of(v_size - 1); for(i = 0; i < seg_no; i++) copy(this->segment[i], v->segment[i], i ? 1 << i : 2); @@ -764,7 +764,7 @@ void __thiscall _Concurrent_vector_base_v4__Internal_assign( if(i < v_seg_no) { _Concurrent_vector_base_v4__Internal_reserve(this, v_size, - element_size, MSVCP_SIZE_T_MAX / element_size); + element_size, ~(size_t)0 / element_size); for(i++; i < v_seg_no; i++) copy(this->segment[i], v->segment[i], 1 << i); copy(this->segment[i], v->segment[i], v->early_size - (1 << i)); @@ -788,7 +788,7 @@ size_t __thiscall _Concurrent_vector_base_v4__Internal_grow_by( do { size = this->early_size; _Concurrent_vector_base_v4__Internal_reserve(this, size + count, element_size, - MSVCP_SIZE_T_MAX / element_size); + ~(size_t)0 / element_size); } while(InterlockedCompareExchangeSizeT(&this->early_size, size + count, size) != size); seg_no = size ? _vector_base_v4__Segment_index_of(size - 1) : 0; @@ -818,7 +818,7 @@ size_t __thiscall _Concurrent_vector_base_v4__Internal_grow_to_at_least_with_res TRACE("(%p %Iu %Iu %p %p)\n", this, count, element_size, copy, v); _Concurrent_vector_base_v4__Internal_reserve(this, count, element_size, - MSVCP_SIZE_T_MAX / element_size); + ~(size_t)0 / element_size); do { size = this->early_size; if(size >= count) return size; @@ -853,7 +853,7 @@ void * __thiscall _Concurrent_vector_base_v4__Internal_push_back( do { index = this->early_size; _Concurrent_vector_base_v4__Internal_reserve(this, index + 1, - element_size, MSVCP_SIZE_T_MAX / element_size); + element_size, ~(size_t)0 / element_size); } while(InterlockedCompareExchangeSizeT(&this->early_size, index + 1, index) != index); seg = _vector_base_v4__Segment_index_of(index); segment_base = (seg == 0) ? 0 : (1 << seg); diff --git a/dlls/msvcp90/msvcp90.h b/dlls/msvcp90/msvcp90.h index 6aee436df53..a525c8adc1e 100644 --- a/dlls/msvcp90/msvcp90.h +++ b/dlls/msvcp90/msvcp90.h @@ -24,7 +24,6 @@ #define CXX_EXCEPTION 0xe06d7363 #define ALIGNED_SIZE(size, alignment) (((size)+((alignment)-1))/(alignment)*(alignment)) -#define MSVCP_SIZE_T_MAX (~(size_t)0) #if _MSVCP_VER >= 100 typedef __int64 DECLSPEC_ALIGN(8) streamoff; typedef __int64 DECLSPEC_ALIGN(8) streamsize;
1
0
0
0
Piotr Caban : msvcp90: Always throw bad_alloc exception in operator_new on allocation failure.
by Alexandre Julliard
26 Aug '21
26 Aug '21
Module: wine Branch: master Commit: ff5d176ce22ea9b3f65a3701d41232d29e2c1493 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=ff5d176ce22ea9b3f65a3701…
Author: Piotr Caban <piotr(a)codeweavers.com> Date: Thu Aug 26 14:20:56 2021 +0200 msvcp90: Always throw bad_alloc exception in operator_new on allocation failure. Signed-off-by: Piotr Caban <piotr(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/msvcp60/ios.c | 16 --- dlls/msvcp60/main.c | 24 +++- dlls/msvcp60/msvcp.h | 4 +- dlls/msvcp90/ios.c | 16 --- dlls/msvcp90/locale.c | 355 ++-------------------------------------------- dlls/msvcp90/misc.c | 5 - dlls/msvcp90/msvcp90.h | 5 - dlls/msvcp90/msvcp_main.c | 26 +++- dlls/msvcp90/string.c | 8 -- 9 files changed, 54 insertions(+), 405 deletions(-) Diff:
https://source.winehq.org/git/wine.git/?a=commitdiff;h=ff5d176ce22ea9b3f65a…
1
0
0
0
Piotr Caban : msvcp90: Remove MSVCRT_ prefix from new() and delete().
by Alexandre Julliard
26 Aug '21
26 Aug '21
Module: wine Branch: master Commit: 3a86f0a68fb137b1ddc1194125c1546bf72613bb URL:
https://source.winehq.org/git/wine.git/?a=commit;h=3a86f0a68fb137b1ddc11941…
Author: Piotr Caban <piotr(a)codeweavers.com> Date: Thu Aug 26 14:20:53 2021 +0200 msvcp90: Remove MSVCRT_ prefix from new() and delete(). Signed-off-by: Piotr Caban <piotr(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/msvcirt/msvcirt.c | 124 ++++++++++----------- dlls/msvcp60/ios.c | 172 ++++++++++++++--------------- dlls/msvcp60/main.c | 12 +- dlls/msvcp60/msvcp.h | 4 +- dlls/msvcp90/details.c | 8 +- dlls/msvcp90/exception.c | 24 ++-- dlls/msvcp90/ios.c | 166 ++++++++++++++-------------- dlls/msvcp90/locale.c | 274 +++++++++++++++++++++++----------------------- dlls/msvcp90/memory.c | 12 +- dlls/msvcp90/misc.c | 18 +-- dlls/msvcp90/msvcp90.h | 9 +- dlls/msvcp90/msvcp_main.c | 19 ++-- dlls/msvcp90/string.c | 8 +- 13 files changed, 427 insertions(+), 423 deletions(-) Diff:
https://source.winehq.org/git/wine.git/?a=commitdiff;h=3a86f0a68fb137b1ddc1…
1
0
0
0
Piotr Caban : msvcp90: Move Concurrency::details functions to details.c file.
by Alexandre Julliard
26 Aug '21
26 Aug '21
Module: wine Branch: master Commit: 6cca4e254c7a487e7b3c3da2ad9a4035f2b2abbb URL:
https://source.winehq.org/git/wine.git/?a=commit;h=6cca4e254c7a487e7b3c3da2…
Author: Piotr Caban <piotr(a)codeweavers.com> Date: Thu Aug 26 14:20:50 2021 +0200 msvcp90: Move Concurrency::details functions to details.c file. Signed-off-by: Piotr Caban <piotr(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/msvcp100/Makefile.in | 1 + dlls/msvcp110/Makefile.in | 1 + dlls/msvcp120/Makefile.in | 1 + dlls/msvcp140/Makefile.in | 1 + dlls/msvcp90/Makefile.in | 1 + dlls/msvcp90/details.c | 1135 +++++++++++++++++++++++++++++++++++++++++ dlls/msvcp90/misc.c | 1235 +++------------------------------------------ dlls/msvcp90/msvcp90.h | 7 +- dlls/msvcp90/msvcp_main.c | 1 + 9 files changed, 1208 insertions(+), 1175 deletions(-) Diff:
https://source.winehq.org/git/wine.git/?a=commitdiff;h=6cca4e254c7a487e7b3c…
1
0
0
0
Francois Gouget : user32/tests: Fix ASCII / ANSI mixups in dde comments.
by Alexandre Julliard
26 Aug '21
26 Aug '21
Module: wine Branch: master Commit: fa18bc566067c5b1dfff617b2ad517c10559fa74 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=fa18bc566067c5b1dfff617b…
Author: Francois Gouget <fgouget(a)free.fr> Date: Thu Aug 26 13:13:47 2021 +0200 user32/tests: Fix ASCII / ANSI mixups in dde comments. Signed-off-by: Francois Gouget <fgouget(a)free.fr> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/user32/tests/dde.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/user32/tests/dde.c b/dlls/user32/tests/dde.c index 888801dad90..dc0bb85d736 100644 --- a/dlls/user32/tests/dde.c +++ b/dlls/user32/tests/dde.c @@ -2438,7 +2438,7 @@ static HDDEDATA CALLBACK server_end_to_end_callback(UINT uType, UINT uFmt, HCONV test_cmd_w_to_a, sizeof(test_cmd_w_to_a), NULL, NULL ); switch (str_index) { - case 0: /* ASCII string */ + case 0: /* ANSI string */ if (unicode_server) { ok(size == size_a_to_w, "Wrong size %d/%d, msg_index=%d\n", size, size_a_to_w, msg_index); @@ -2447,7 +2447,7 @@ static HDDEDATA CALLBACK server_end_to_end_callback(UINT uType, UINT uFmt, HCONV } else if (unicode_client) { - /* ASCII string mapped W->A -> garbage */ + /* ANSI string mapped W->A -> garbage */ } else {
1
0
0
0
Francois Gouget : user32/tests: Fix an ASCII / ANSI mixup in a dde ok() message.
by Alexandre Julliard
26 Aug '21
26 Aug '21
Module: wine Branch: master Commit: 2d52e16f2a6b2fc2971eb3dd071686a5d640ddc1 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=2d52e16f2a6b2fc2971eb3dd…
Author: Francois Gouget <fgouget(a)free.fr> Date: Thu Aug 26 13:13:35 2021 +0200 user32/tests: Fix an ASCII / ANSI mixup in a dde ok() message. Signed-off-by: Francois Gouget <fgouget(a)free.fr> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/user32/tests/dde.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/user32/tests/dde.c b/dlls/user32/tests/dde.c index 96cf210d542..888801dad90 100644 --- a/dlls/user32/tests/dde.c +++ b/dlls/user32/tests/dde.c @@ -2649,8 +2649,8 @@ static void test_end_to_end_server(void) HDDEDATA hdata; static const char test_service[] = "TestDDEService"; - trace("client %s, server %s\n", unicode_client ? "unicode" : "ascii", - unicode_server ? "unicode" : "ascii"); + trace("client %s, server %s\n", unicode_client ? "unicode" : "ansi", + unicode_server ? "unicode" : "ansi"); server_pid = 0; msg_index = 0;
1
0
0
0
← Newer
1
...
19
20
21
22
23
24
25
...
106
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
Results per page:
10
25
50
100
200