Message 135540 - Python tracker (original) (raw)
The code for check_GetFinalPathNameByHandle() goes like this:
static int has_GetFinalPathNameByHandle = 0; [...]
static int check_GetFinalPathNameByHandle() { HINSTANCE hKernel32; /* only recheck */ if (!has_GetFinalPathNameByHandle) { [...] has_GetFinalPathNameByHandle = Py_GetFinalPathNameByHandleA && Py_GetFinalPathNameByHandleW; } return has_GetFinalPathNameByHandle; }
It means that if the computed value is 0 (system doesn't have GetFinalPathNameByHandle*), the value will be re-computed each time the function is called. has_GetFinalPathNameByHandle should probably be tri-state instead (0, 1, unknown).