id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc 3035,crash in cpl_vsil_win32.cpp when compiling as x64 under Windows,swilc0x,warmerdam,"There is a bug in char **VSIWin32FilesystemHandler::ReadDir( const char *pszPath ) that manifests as a crash under Windows when compiled as a 64bit target. There is no problem when compiled as a 32bit binary. The issue itself is that the variable 'hFile' is incorrectly declared as a long. 'hFile' should be declared as a intptr_t per the standard. This breaks on Windows when compiled as a 64bit binary because a long is 32bit whereas intptr_t is 64bit. The fix is trivial. Simply change: long hFile; to intptr_t hFile; ",defect,closed,normal,1.6.2,default,1.5.4,major,fixed,win64,tamas