mirror of
https://github.com/solemnwarning/ipxwrapper
synced 2024-12-30 16:45:37 +01:00
Fixed typo, tried to use NULL pointer.
This commit is contained in:
parent
81ebe2191d
commit
8e5b68ab49
@ -58,7 +58,7 @@ static BOOL start_router(void);
|
|||||||
#define INIT_CS(cs) if(!init_cs(cs, &initialised_cs)) { return FALSE; }
|
#define INIT_CS(cs) if(!init_cs(cs, &initialised_cs)) { return FALSE; }
|
||||||
|
|
||||||
static BOOL init_cs(CRITICAL_SECTION *cs, int *counter) {
|
static BOOL init_cs(CRITICAL_SECTION *cs, int *counter) {
|
||||||
if(!InitializeCriticalSectionAndSpinCount(&(router->crit_sec), 0x80000000)) {
|
if(!InitializeCriticalSectionAndSpinCount(cs, 0x80000000)) {
|
||||||
log_printf("Failed to initialise critical section: %s", w32_error(GetLastError()));
|
log_printf("Failed to initialise critical section: %s", w32_error(GetLastError()));
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user