mirror of
https://github.com/reactos/reactos.git
synced 2024-09-30 06:27:38 +00:00
[WINESYNC] msvcrt: Add helper for exception throwing.
Signed-off-by: Piotr Caban <piotr@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org> wine commit id 90307e067f985f5963b62829993b320537578333 by Piotr Caban <piotr@codeweavers.com>
This commit is contained in:
parent
6360937cd4
commit
8fdc1b0d38
|
@ -175,7 +175,7 @@ void* CDECL MSVCRT_operator_new(MSVCRT_size_t size)
|
||||||
|
|
||||||
TRACE("(%ld) out of memory\n", size);
|
TRACE("(%ld) out of memory\n", size);
|
||||||
#if _MSVCR_VER >= 80
|
#if _MSVCR_VER >= 80
|
||||||
throw_bad_alloc("bad allocation");
|
throw_exception(EXCEPTION_BAD_ALLOC, 0, "bad allocation");
|
||||||
#endif
|
#endif
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue