[Wine-patches] [eterhack 24/24] ntoskrnl.exe: Reduce CPU load when running hardlock.sys.
Alexander Morozov
=?iso-8859-1?q?amorozov_=CE=C1_etersoft=2Eru?=
Ср Мар 4 12:25:33 MSK 2009
---
dlls/ntoskrnl.exe/ntoskrnl.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c
index 1f3c0fe..aaebb4d 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.c
+++ b/dlls/ntoskrnl.exe/ntoskrnl.c
@@ -2338,6 +2338,7 @@ NTSTATUS WINAPI KeWaitForSingleObject( PVOID Object, KWAIT_REASON WaitReason,
PLARGE_INTEGER Timeout )
{
TRACE("%p %u %d %d %p\n", Object, WaitReason, WaitMode, Alertable, Timeout);
+ Sleep(20); /* HACK for hardlock.sys */
return STATUS_SUCCESS;
}
--
1.6.1.3.GIT
Подробная информация о списке рассылки Wine-patches