Alexandre Julliard : ntdll: Make sure we don't return from a stub exception .

Alexandre Julliard julliard at winehq.org
Mon Dec 29 08:47:57 CST 2008


Module: wine
Branch: master
Commit: d75b0ce45298bc85c62ea84805b66f704670e883
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d75b0ce45298bc85c62ea84805b66f704670e883

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Dec 29 12:43:59 2008 +0100

ntdll: Make sure we don't return from a stub exception.

---

 dlls/ntdll/exception.c |    2 +-
 dlls/winecrt0/stub.c   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/ntdll/exception.c b/dlls/ntdll/exception.c
index c2bf5cb..d948f84 100644
--- a/dlls/ntdll/exception.c
+++ b/dlls/ntdll/exception.c
@@ -601,5 +601,5 @@ void __wine_spec_unimplemented_stub( const char *module, const char *function )
     record.NumberParameters = 2;
     record.ExceptionInformation[0] = (ULONG_PTR)module;
     record.ExceptionInformation[1] = (ULONG_PTR)function;
-    RtlRaiseException( &record );
+    for (;;) RtlRaiseException( &record );
 }
diff --git a/dlls/winecrt0/stub.c b/dlls/winecrt0/stub.c
index c6ddb91..5f52d46 100644
--- a/dlls/winecrt0/stub.c
+++ b/dlls/winecrt0/stub.c
@@ -32,5 +32,5 @@ void DECLSPEC_HIDDEN __wine_spec_unimplemented_stub( const char *module, const c
 
     args[0] = (ULONG_PTR)module;
     args[1] = (ULONG_PTR)function;
-    RaiseException( EXCEPTION_WINE_STUB, EXCEPTION_NONCONTINUABLE, 2, args );
+    for (;;) RaiseException( EXCEPTION_WINE_STUB, EXCEPTION_NONCONTINUABLE, 2, args );
 }




More information about the wine-cvs mailing list