[Wine-patches] [PATCH 5/5] ntoskrnl.exe: Initialize type of synchronization objects.

Alexander Morozov =?iso-8859-1?q?amorozov_=CE=C1_etersoft=2Eru?=
Пт Мар 13 15:30:01 MSK 2009


---
 dlls/ntoskrnl.exe/ntoskrnl.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c
index 182b4d9..2fef745 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.c
+++ b/dlls/ntoskrnl.exe/ntoskrnl.c
@@ -2223,6 +2223,8 @@ LONG WINAPI KeReleaseMutex( PRKMUTEX Mutex, BOOLEAN Wait )
 void WINAPI KeInitializeSemaphore( PRKSEMAPHORE Semaphore, LONG Count, LONG Limit )
 {
     TRACE("stub: %p %d %d\n", Semaphore, Count, Limit);
+    RtlZeroMemory( Semaphore, sizeof(KSEMAPHORE) );
+    Semaphore->Header.Type = 5;
 }
 
 
@@ -2263,6 +2265,8 @@ UINT WINAPI PoSetPowerState( PDEVICE_OBJECT DeviceObject,
 void WINAPI KeInitializeTimerEx( PKTIMER Timer, TIMER_TYPE Type )
 {
     FIXME( "stub: %p %d\n", Timer, Type );
+    RtlZeroMemory( Timer, sizeof(KTIMER) );
+    Timer->Header.Type = Type ? 9 : 8;
 }
 
 
-- 
1.6.1.3.GIT



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