diff --git a/src/xpdev/clx/MainUnit.cpp b/src/xpdev/clx/MainUnit.cpp
index 2838faab88395eeb1aedf4397e1dc2318e007a92..86a3982c0f506c3789cc682a9c7755811fed8237 100644
--- a/src/xpdev/clx/MainUnit.cpp
+++ b/src/xpdev/clx/MainUnit.cpp
@@ -11,15 +11,15 @@
 int main(int argc, char* argv[])
 {
 	TTestThread* Thread=new TTestThread(false /* create suspended? */);
-    Thread->ChildEvent->WaitFor(10000);	/* wait for thread to begin */
+    Thread->ChildEvent->WaitFor(INFINITE);	/* wait for thread to begin */
     Thread->ChildEvent->ResetEvent();
     for(int i=0;i<10;i++) {
         printf("<parent>");
         Thread->ParentEvent->SetEvent();
-        Thread->ChildEvent->WaitFor(10000);
+        Thread->ChildEvent->WaitFor(INFINITE);
         Thread->ChildEvent->ResetEvent();
     }
-    Thread->ChildEvent->WaitFor(10000);	/* wait for thread to end */
+    Thread->ChildEvent->WaitFor(INFINITE);	/* wait for thread to end */
     Thread->Terminate();
     getchar();
 	return 0;
diff --git a/src/xpdev/clx/TestThreadUnit.cpp b/src/xpdev/clx/TestThreadUnit.cpp
index aba7994ca0db0f77f290500522d379993ec873d6..a25870415727c3cebbe7a3c0e8777d1d30c04fad 100644
--- a/src/xpdev/clx/TestThreadUnit.cpp
+++ b/src/xpdev/clx/TestThreadUnit.cpp
@@ -25,7 +25,7 @@ void __fastcall TTestThread::Execute()
 	ChildEvent->SetEvent();
 
 	for(int i=0;i<10;i++) {
-        ParentEvent->WaitFor(10000);
+        ParentEvent->WaitFor(INFINITE);
     	ParentEvent->ResetEvent();
 		printf(" <child>\n");
 		ChildEvent->SetEvent();