8190737: use unicode version of the canonicalize() function to handle long path on windows

Also calling CreateFileW in zip_util.c to handle long path

Reviewed-by: sherman, iklam
This commit is contained in:
Calvin Cheung 2018-09-14 11:17:25 -07:00
parent d4612426ce
commit fcc414655b
5 changed files with 111 additions and 33 deletions

View file

@ -38,7 +38,7 @@
*/
WCHAR* pathToNTPath(JNIEnv *env, jstring path, jboolean throwFNFE);
WCHAR* fileToNTPath(JNIEnv *env, jobject file, jfieldID id);
WCHAR* getPrefixed(const WCHAR* path, int pathlen);
__declspec(dllexport) WCHAR* getPrefixed(const WCHAR* path, int pathlen);
WCHAR* currentDir(int di);
int currentDirLength(const WCHAR* path, int pathlen);
int handleAvailable(FD fd, jlong *pbytes);