2 Oct
2009
2 Oct
'09
11:35 a.m.
Matteo Bruni <matteo.mystral(a)gmail.com> writes:
@@ -82,8 +82,7 @@ void *pp_xmalloc(size_t size) res = malloc(size); if(res == NULL) { - fprintf(stderr, "Virtual memory exhausted.\n"); - exit(2); + pp_internal_error(__FILE__, __LINE__, "Virtual memory exhausted.\n"); } return res; } @@ -96,8 +95,7 @@ void *pp_xrealloc(void *p, size_t size) res = realloc(p, size); if(res == NULL) { - fprintf(stderr, "Virtual memory exhausted.\n"); - exit(2); + pp_internal_error(__FILE__, __LINE__, "Virtual memory exhausted.\n");
Memory allocation failures are not internal errors. -- Alexandre Julliard julliard(a)winehq.org