mirror of
https://github.com/reactos/reactos.git
synced 2024-08-04 18:40:59 +00:00
[DHCPCSVC]
- Make AdapterDiscoveryThread run in its own thread (duh?) svn path=/branches/wlan-bringup/; revision=54899
This commit is contained in:
parent
715350ea7c
commit
83a2fb2da4
|
@ -361,14 +361,13 @@ 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,
|
||||
|
@ -380,9 +379,6 @@ HANDLE StartAdapterDiscovery(VOID) {
|
|||
return NULL;
|
||||
|
||||
CloseHandle(ThreadHandle);
|
||||
#else
|
||||
AdapterDiscoveryThread((LPVOID)EventHandle);
|
||||
#endif
|
||||
|
||||
return EventHandle;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue