[DHCPCSVC]

- 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
This commit is contained in:
Cameron Gutman 2010-06-28 18:50:19 +00:00
parent 6d5d099e85
commit e49b6bfe34

View file

@ -365,13 +365,14 @@ DWORD WINAPI AdapterDiscoveryThread(LPVOID Context) {
}
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 @@ HANDLE StartAdapterDiscovery(VOID) {
return NULL;
CloseHandle(ThreadHandle);
#else
AdapterDiscoveryThread((LPVOID)EventHandle);
#endif
return EventHandle;
}