mirror of
https://github.com/tezc/sc.git
synced 2025-02-04 07:13:10 +08:00
fix windows sc_cond
This commit is contained in:
parent
13a8284383
commit
e39a8fb2d2
@ -46,12 +46,12 @@ int sc_cond_init(struct sc_cond *c)
|
|||||||
|
|
||||||
int sc_cond_term(struct sc_cond *c)
|
int sc_cond_term(struct sc_cond *c)
|
||||||
{
|
{
|
||||||
if (!c.init) {
|
if (!c->init) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
DeleteCriticalSection(&c->mtx);
|
DeleteCriticalSection(&c->mtx);
|
||||||
c.init = false;
|
c->init = false;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user