11 May
2013
11 May
'13
12:17 a.m.
AMDG On 05/10/2013 12:11 PM, Stephan T. Lavavej wrote:
[Matt Weber]
That takes a 64-bit handle, but we have a 32-bit handle that we got back from _findfirst. That's the problem -- the handle returned from _findfirst (_findfirst64i32) is actually 64-bit.
_findfirst() is documented[1] as returning intptr_t, so that's what you should be declaring your variable as. That should work on both x86 and x64.
This looks like it has already been fixed in the trunk. In Christ, Steven Watanabe