There is an additional bug at

http://www.winehq.org/pipermail/wine-bugs/2008-March/098758.html

This person found the same thing as me, the problem is with the kernel32
patch.

I will compile a .deb with the patch reversed if anyone is interested.

The exact patch for anyone that is interested: 
WARNING: this may break other applications. 

--- a/dlls/kernel32/sync.c
+++ b/dlls/kernel32/sync.c

@@ -270,9 +270,19 @@ HANDLE WINAPI RegisterWaitForSingleObjectEx( HANDLE 
hObject,
                 WAITORTIMERCALLBACK Callback, PVOID Context,
                 ULONG dwMilliseconds, ULONG dwFlags ) 
 {
-    FIXME("%p %p %p %d %d\n",
+    NTSTATUS status;
+    HANDLE hNewWaitObject;
+
+    TRACE("%p %p %p %d %d\n",
           hObject,Callback,Context,dwMilliseconds,dwFlags);
-    return 0;
+
+    status = RtlRegisterWait( &hNewWaitObject, hObject, Callback, Context, 
dwMilliseconds, dwFlags );
+    if (status != STATUS_SUCCESS)
+    {
+        SetLastError( RtlNtStatusToDosError(status) );
+        return NULL;
+    }
+    return hNewWaitObject;
 } 

/***********************************************************************

-- 
[Hardy] Wine 100% cpu usage
https://bugs.launchpad.net/bugs/205895
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to