[DHCPCSVC]
authorCameron Gutman <aicommander@gmail.com>
Mon, 28 Jun 2010 18:50:19 +0000 (18:50 +0000)
committerCameron Gutman <aicommander@gmail.com>
Mon, 28 Jun 2010 18:50:19 +0000 (18:50 +0000)
- Discover adapters synchronously again until a bug (possibly a race condition) is fixed
- DHCP failure in certain situations is fixed now

svn path=/trunk/; revision=47899

reactos/dll/win32/dhcpcsvc/dhcp/adapter.c

index 73a45e0..b6801e5 100644 (file)
@@ -365,13 +365,14 @@ DWORD WINAPI AdapterDiscoveryThread(LPVOID Context) {
 }
 
 HANDLE StartAdapterDiscovery(VOID) {
 }
 
 HANDLE StartAdapterDiscovery(VOID) {
-    HANDLE ThreadHandle, EventHandle;
+    HANDLE /* ThreadHandle, */ EventHandle;
 
     EventHandle = CreateEvent(NULL,
                               FALSE,
                               FALSE,
                               NULL);
 
 
     EventHandle = CreateEvent(NULL,
                               FALSE,
                               FALSE,
                               NULL);
 
+#if 0
     ThreadHandle = CreateThread(NULL,
                                 0,
                                 AdapterDiscoveryThread,
     ThreadHandle = CreateThread(NULL,
                                 0,
                                 AdapterDiscoveryThread,
@@ -383,6 +384,9 @@ HANDLE StartAdapterDiscovery(VOID) {
         return NULL;
 
     CloseHandle(ThreadHandle);
         return NULL;
 
     CloseHandle(ThreadHandle);
+#else
+    AdapterDiscoveryThread((LPVOID)EventHandle);
+#endif
 
     return EventHandle;
 }
 
     return EventHandle;
 }