Alexandre Julliard : kernel:
An unavailable address for the PE file can cause
ERROR_NOT_ENOUGH_MEMORY too .
Alexandre Julliard
julliard at wine.codeweavers.com
Sun Sep 10 03:28:17 CDT 2006
Module: wine
Branch: master
Commit: 33f047fe56532da6505e309802fc9f99a11657c5
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=33f047fe56532da6505e309802fc9f99a11657c5
Author: Alexandre Julliard <julliard at winehq.org>
Date: Sat Sep 9 23:14:26 2006 +0200
kernel: An unavailable address for the PE file can cause ERROR_NOT_ENOUGH_MEMORY too.
---
dlls/kernel/process.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/kernel/process.c b/dlls/kernel/process.c
index 9f80411..7e75822 100644
--- a/dlls/kernel/process.c
+++ b/dlls/kernel/process.c
@@ -914,7 +914,9 @@ void __wine_kernel_init(void)
DWORD error = GetLastError();
/* if Win16/DOS format, or unavailable address, exec a new process with the proper setup */
- if (error == ERROR_BAD_EXE_FORMAT || error == ERROR_INVALID_ADDRESS)
+ if (error == ERROR_BAD_EXE_FORMAT ||
+ error == ERROR_INVALID_ADDRESS ||
+ error == ERROR_NOT_ENOUGH_MEMORY)
{
if (!getenv("WINEPRELOADRESERVE")) exec_process( main_exe_name );
/* if we get back here, it failed */
More information about the wine-cvs
mailing list