[Wine-patches] [eter-1.0.10] ntdll: Add hack for DrvFRTst.exe (eterbug #3895).

Alexander Morozov amorozov на etersoft.ru
Чт Июл 16 12:54:33 MSD 2009


----------- следующая часть -----------
From 555190f4369df336f388c15b875183c736f96d37 Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov на etersoft.ru>
Date: Thu, 16 Jul 2009 12:49:38 +0400
Subject: [eter-1.0.10] ntdll: Add hack for DrvFRTst.exe (eterbug #3895).

---
 dlls/ntdll/thread.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/dlls/ntdll/thread.c b/dlls/ntdll/thread.c
index eec04d1..8bd1ef2 100644
--- a/dlls/ntdll/thread.c
+++ b/dlls/ntdll/thread.c
@@ -490,6 +490,13 @@ static void start_thread( struct startup_info *info )
     InsertHeadList( &tls_links, &teb->TlsLinks );
     RtlReleasePebLock();
 
+    /* HACK for DrvFRTst.exe (eterbug #3895) */
+    if (func == (void *)0x40004a60)
+    {
+        struct timespec ts = {0, 100000000};
+        nanosleep( &ts, NULL );
+    }
+
     /* NOTE: Windows does not have an exception handler around the call to
      * the thread attach. We do for ease of debugging */
     if (unhandled_exception_filter)
-- 
1.6.3.3



Подробная информация о списке рассылки Wine-patches