Piotr Caban : msvcp90: Fix _Xmem and _Nomemory exception message.

Alexandre Julliard julliard at winehq.org
Thu Aug 26 15:22:31 CDT 2021


Module: wine
Branch: master
Commit: 5630ce26382cbf0eed29cdf9df68e087f188419f
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=5630ce26382cbf0eed29cdf9df68e087f188419f

Author: Piotr Caban <piotr at codeweavers.com>
Date:   Thu Aug 26 14:21:19 2021 +0200

msvcp90: Fix _Xmem and _Nomemory exception message.

Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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 at tr1@std@@YAXXZ */
 void __cdecl _Xmem(void)
 {
     TRACE("()\n");
-    throw_exception(EXCEPTION_BAD_ALLOC, NULL);
+    throw_exception(EXCEPTION_BAD_ALLOC, "bad allocation");
 }
 
 /* ?_Xinvalid_argument at std@@YAXPBD at Z */




More information about the wine-cvs mailing list