Message135540
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). |
|
Date |
User |
Action |
Args |
2011-05-08 20:00:06 | pitrou | set | recipients:
+ pitrou, brian.curtin |
2011-05-08 20:00:06 | pitrou | set | messageid: <1304884806.89.0.503663992861.issue12034@psf.upfronthosting.co.za> |
2011-05-08 20:00:05 | pitrou | link | issue12034 messages |
2011-05-08 20:00:05 | pitrou | create | |
|