Author: cgutman
Date: Mon Jun 28 18:50:19 2010
New Revision: 47899
URL:
http://svn.reactos.org/svn/reactos?rev=47899&view=rev
Log:
[DHCPCSVC]
- Discover adapters synchronously again until a bug (possibly a race condition) is fixed
- DHCP failure in certain situations is fixed now
Modified:
trunk/reactos/dll/win32/dhcpcsvc/dhcp/adapter.c
Modified: trunk/reactos/dll/win32/dhcpcsvc/dhcp/adapter.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/dhcpcsvc/dhcp/ad…
==============================================================================
--- trunk/reactos/dll/win32/dhcpcsvc/dhcp/adapter.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/dhcpcsvc/dhcp/adapter.c [iso-8859-1] Mon Jun 28 18:50:19 2010
@@ -365,13 +365,14 @@
}
HANDLE StartAdapterDiscovery(VOID) {
- HANDLE ThreadHandle, EventHandle;
+ HANDLE /* ThreadHandle, */ EventHandle;
EventHandle = CreateEvent(NULL,
FALSE,
FALSE,
NULL);
+#if 0
ThreadHandle = CreateThread(NULL,
0,
AdapterDiscoveryThread,
@@ -383,6 +384,9 @@
return NULL;
CloseHandle(ThreadHandle);
+#else
+ AdapterDiscoveryThread((LPVOID)EventHandle);
+#endif
return EventHandle;
}