Changeset 14181 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Nov 13, 2008 3:49:43 PM (16 years ago)
- Location:
- trunk/src/VBox/Devices/Network/slirp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/slirp.c
r14180 r14181 226 226 } 227 227 #ifdef VBOX_WITH_SIMPLEFIED_SLIRP_SYNC 228 pData->cMaxEvent = VBOX_EVENT_COUNT; 229 pData->phEvents = malloc(sizeof(HANDLE) * pData->cMaxEvent); 230 for (i = 1; i < WSA_MAXIMUM_WAIT_EVENTS; ++i) { 231 pData->phEvents[i] = CreateEvent(NULL, FALSE, FALSE, NULL); 232 } 228 pData->phEvents[0] = CreateEvent(NULL, FALSE, FALSE, NULL); 229 pData->phEvents[VBOX_SOCKET_EVENT_INDEX] = CreateEvent(NULL, FALSE, FALSE, NULL); 233 230 #endif 234 231 #endif -
trunk/src/VBox/Devices/Network/slirp/slirp_state.h
r14180 r14181 120 120 #define VBOX_SOCKET_EVENT (pData->phEvents[VBOX_SOCKET_EVENT_INDEX]) 121 121 #define VBOX_EVENT_COUNT 2 122 int cMaxEvent;123 122 HANDLE *phEvents; 124 123 #endif
Note:
See TracChangeset
for help on using the changeset viewer.