Lines Matching refs:pathbuf

365     WCHAR *pathbuf = fileToNTPath(env, file, ids.path);
366 if (pathbuf == NULL)
368 if (!isReservedDeviceNameW(pathbuf)) {
369 DWORD a = getFinalAttributes(pathbuf);
379 free(pathbuf);
389 WCHAR *pathbuf = fileToNTPath(env, file, ids.path);
390 if (pathbuf == NULL)
392 attr = GetFileAttributesW(pathbuf);
393 attr = getFinalAttributesIfReparsePoint(pathbuf, attr);
394 free(pathbuf);
422 WCHAR *pathbuf;
428 pathbuf = fileToNTPath(env, file, ids.path);
429 if (pathbuf == NULL)
431 a = GetFileAttributesW(pathbuf);
437 WCHAR *fp = getFinalPath(pathbuf);
441 free(pathbuf);
442 pathbuf = fp;
443 a = GetFileAttributesW(pathbuf);
453 if (SetFileAttributesW(pathbuf, a))
456 free(pathbuf);
468 WCHAR *pathbuf = fileToNTPath(env, file, ids.path);
469 if (pathbuf == NULL)
471 h = CreateFileW(pathbuf,
493 free(pathbuf);
502 WCHAR *pathbuf = fileToNTPath(env, file, ids.path);
503 if (pathbuf == NULL)
505 if (GetFileAttributesExW(pathbuf,
513 if (getFileInformation(pathbuf, &finfo)) {
525 if (_wstati64(pathbuf, &sb) == 0) {
530 free(pathbuf);
541 WCHAR *pathbuf = pathToNTPath(env, path, JNI_FALSE);
542 if (pathbuf == NULL)
544 if (isReservedDeviceNameW(pathbuf)) {
545 free(pathbuf);
549 pathbuf, /* Wide char path name */
563 DWORD a = GetFileAttributesW(pathbuf);
569 free(pathbuf);
572 free(pathbuf);
598 WCHAR *pathbuf = fileToNTPath(env, file, ids.path);
599 if (pathbuf == NULL) {
602 if (removeFileOrDirectory(pathbuf) == 0) {
605 free(pathbuf);
620 WCHAR *pathbuf = fileToNTPath(env, file, ids.path);
621 if (pathbuf == NULL)
623 search_path = (WCHAR*)malloc(2*wcslen(pathbuf) + 6);
625 free (pathbuf);
629 wcscpy(search_path, pathbuf);
630 free(pathbuf);
721 WCHAR *pathbuf = fileToNTPath(env, file, ids.path);
722 if (pathbuf == NULL) {
726 h = CreateDirectoryW(pathbuf, NULL);
727 free(pathbuf);
761 WCHAR *pathbuf = fileToNTPath(env, file, ids.path);
763 if (pathbuf == NULL)
765 h = CreateFileW(pathbuf,
783 free(pathbuf);
795 WCHAR *pathbuf = fileToNTPath(env, file, ids.path);
796 if (pathbuf == NULL)
798 a = GetFileAttributesW(pathbuf);
804 WCHAR *fp = getFinalPath(pathbuf);
808 free(pathbuf);
809 pathbuf = fp;
810 a = GetFileAttributesW(pathbuf);
816 if (SetFileAttributesW(pathbuf, a | FILE_ATTRIBUTE_READONLY))
819 free(pathbuf);
846 WCHAR *pathbuf = fileToNTPath(env, file, ids.path);
848 if (GetVolumePathNameW(pathbuf, volname, MAX_PATH_LENGTH)) {
867 free(pathbuf);