mirror of
https://github.com/decompals/wibo.git
synced 2025-10-17 07:35:11 +00:00
tweak initterms_e
This commit is contained in:
parent
4c88e1ab5e
commit
4fdeffba3c
@ -19,13 +19,14 @@ namespace msvcrt {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int WIN_FUNC _initterm_e(const _PIFV *ppfn, const _PIFV *end) {
|
int WIN_FUNC _initterm_e(const _PIFV *ppfn, const _PIFV *end) {
|
||||||
do {
|
while (ppfn < end) {
|
||||||
if (_PIFV pfn = *++ppfn) {
|
_PIFV func = *ppfn++;
|
||||||
if (int err = pfn())
|
if (func) {
|
||||||
|
int err = func();
|
||||||
|
if (err != 0)
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
} while (ppfn < end);
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user