• Home
  • Raw
  • Download

Lines Matching refs:NewPrivateFile

868   WIN_NT_EFI_FILE_PRIVATE           *NewPrivateFile;  in WinNtSimpleFileSystemOpen()  local
916 NewPrivateFile = NULL; in WinNtSimpleFileSystemOpen()
962 NewPrivateFile = AllocatePool (sizeof (WIN_NT_EFI_FILE_PRIVATE)); in WinNtSimpleFileSystemOpen()
963 if (NewPrivateFile == NULL) { in WinNtSimpleFileSystemOpen()
968 CopyMem (NewPrivateFile, PrivateFile, sizeof (WIN_NT_EFI_FILE_PRIVATE)); in WinNtSimpleFileSystemOpen()
970 NewPrivateFile->FilePath = AllocatePool (StrSize (PrivateFile->FileName)); in WinNtSimpleFileSystemOpen()
971 if (NewPrivateFile->FilePath == NULL) { in WinNtSimpleFileSystemOpen()
977 StrCpy (NewPrivateFile->FilePath, PrivateFile->FileName); in WinNtSimpleFileSystemOpen()
979 StrCpy (NewPrivateFile->FilePath, PrivateFile->FilePath); in WinNtSimpleFileSystemOpen()
982 Size = StrSize (NewPrivateFile->FilePath); in WinNtSimpleFileSystemOpen()
985 NewPrivateFile->FileName = AllocatePool (Size); in WinNtSimpleFileSystemOpen()
986 if (NewPrivateFile->FileName == NULL) { in WinNtSimpleFileSystemOpen()
992 StrCpy (NewPrivateFile->FileName, PrivateRoot->FilePath); in WinNtSimpleFileSystemOpen()
993 StrCat (NewPrivateFile->FileName, L"\\"); in WinNtSimpleFileSystemOpen()
994 StrCat (NewPrivateFile->FileName, FileName + 1); in WinNtSimpleFileSystemOpen()
996 StrCpy (NewPrivateFile->FileName, NewPrivateFile->FilePath); in WinNtSimpleFileSystemOpen()
1001 StrCat (NewPrivateFile->FileName, L"\\"); in WinNtSimpleFileSystemOpen()
1002 StrCat (NewPrivateFile->FileName, FileName); in WinNtSimpleFileSystemOpen()
1006 if (!IsFileNameValid (NewPrivateFile->FileName)) { in WinNtSimpleFileSystemOpen()
1018 GuardPointer = NewPrivateFile->FileName + StrLen (PrivateRoot->FilePath); in WinNtSimpleFileSystemOpen()
1067 RealFileName = NewPrivateFile->FileName; in WinNtSimpleFileSystemOpen()
1073 if (RealFileName != NewPrivateFile->FileName) { in WinNtSimpleFileSystemOpen()
1078 FreePool (NewPrivateFile->FilePath); in WinNtSimpleFileSystemOpen()
1079 NewPrivateFile->FilePath = NULL; in WinNtSimpleFileSystemOpen()
1080 NewPrivateFile->FilePath = AllocatePool (StrSize (NewPrivateFile->FileName)); in WinNtSimpleFileSystemOpen()
1081 if (NewPrivateFile->FilePath == NULL) { in WinNtSimpleFileSystemOpen()
1086 StrCpy (NewPrivateFile->FilePath, NewPrivateFile->FileName); in WinNtSimpleFileSystemOpen()
1091 NewPrivateFile->IsRootDirectory = FALSE; in WinNtSimpleFileSystemOpen()
1098 NewPrivateFile->IsDirectoryPath = TRUE; in WinNtSimpleFileSystemOpen()
1100 NewPrivateFile->IsDirectoryPath = FALSE; in WinNtSimpleFileSystemOpen()
1103 NewPrivateFile->LHandle = INVALID_HANDLE_VALUE; in WinNtSimpleFileSystemOpen()
1104 NewPrivateFile->LHandle = NewPrivateFile->WinNtThunk->CreateFile ( in WinNtSimpleFileSystemOpen()
1105 NewPrivateFile->FileName, in WinNtSimpleFileSystemOpen()
1114 if (NewPrivateFile->LHandle != INVALID_HANDLE_VALUE) { in WinNtSimpleFileSystemOpen()
1115 NewPrivateFile->IsDirectoryPath = FALSE; in WinNtSimpleFileSystemOpen()
1116 NewPrivateFile->WinNtThunk->CloseHandle (NewPrivateFile->LHandle); in WinNtSimpleFileSystemOpen()
1118 NewPrivateFile->IsDirectoryPath = TRUE; in WinNtSimpleFileSystemOpen()
1121 NewPrivateFile->LHandle = INVALID_HANDLE_VALUE; in WinNtSimpleFileSystemOpen()
1125 NewPrivateFile->IsOpenedByRead = FALSE; in WinNtSimpleFileSystemOpen()
1127 NewPrivateFile->IsOpenedByRead = TRUE; in WinNtSimpleFileSystemOpen()
1135 if (NewPrivateFile->IsDirectoryPath) { in WinNtSimpleFileSystemOpen()
1137 Size = StrSize (NewPrivateFile->FileName); in WinNtSimpleFileSystemOpen()
1145 StrCpy (TempFileName, NewPrivateFile->FileName); in WinNtSimpleFileSystemOpen()
1151 if (!NewPrivateFile->WinNtThunk->CreateDirectory (TempFileName, NULL)) { in WinNtSimpleFileSystemOpen()
1162 NewPrivateFile->DirHandle = NewPrivateFile->WinNtThunk->CreateFile ( in WinNtSimpleFileSystemOpen()
1164NewPrivateFile->IsOpenedByRead ? GENERIC_READ : (GENERIC_READ | GENERIC_WRITE), in WinNtSimpleFileSystemOpen()
1172 if (NewPrivateFile->DirHandle == INVALID_HANDLE_VALUE) { in WinNtSimpleFileSystemOpen()
1174 NewPrivateFile->DirHandle = NewPrivateFile->WinNtThunk->CreateFile ( in WinNtSimpleFileSystemOpen()
1184 if (NewPrivateFile->DirHandle != INVALID_HANDLE_VALUE) { in WinNtSimpleFileSystemOpen()
1185 NewPrivateFile->WinNtThunk->CloseHandle (NewPrivateFile->DirHandle); in WinNtSimpleFileSystemOpen()
1186 NewPrivateFile->DirHandle = INVALID_HANDLE_VALUE; in WinNtSimpleFileSystemOpen()
1200NewPrivateFile->LHandle = NewPrivateFile->WinNtThunk->FindFirstFile (TempFileName, &NewPrivateFile in WinNtSimpleFileSystemOpen()
1203 if (NewPrivateFile->LHandle == INVALID_HANDLE_VALUE) { in WinNtSimpleFileSystemOpen()
1204 NewPrivateFile->IsValidFindBuf = FALSE; in WinNtSimpleFileSystemOpen()
1206 NewPrivateFile->IsValidFindBuf = TRUE; in WinNtSimpleFileSystemOpen()
1212 if (!NewPrivateFile->IsOpenedByRead) { in WinNtSimpleFileSystemOpen()
1213 NewPrivateFile->LHandle = NewPrivateFile->WinNtThunk->CreateFile ( in WinNtSimpleFileSystemOpen()
1214 NewPrivateFile->FileName, in WinNtSimpleFileSystemOpen()
1223 if (NewPrivateFile->LHandle == INVALID_HANDLE_VALUE) { in WinNtSimpleFileSystemOpen()
1224 NewPrivateFile->LHandle = NewPrivateFile->WinNtThunk->CreateFile ( in WinNtSimpleFileSystemOpen()
1225 NewPrivateFile->FileName, in WinNtSimpleFileSystemOpen()
1234 if (NewPrivateFile->LHandle == INVALID_HANDLE_VALUE) { in WinNtSimpleFileSystemOpen()
1238 NewPrivateFile->WinNtThunk->CloseHandle (NewPrivateFile->LHandle); in WinNtSimpleFileSystemOpen()
1239 NewPrivateFile->LHandle = INVALID_HANDLE_VALUE; in WinNtSimpleFileSystemOpen()
1243 NewPrivateFile->LHandle = NewPrivateFile->WinNtThunk->CreateFile ( in WinNtSimpleFileSystemOpen()
1244 NewPrivateFile->FileName, in WinNtSimpleFileSystemOpen()
1253 if (NewPrivateFile->LHandle == INVALID_HANDLE_VALUE) { in WinNtSimpleFileSystemOpen()
1266 …Status = WinNtSimpleFileSystemGetInfo (&NewPrivateFile->EfiFile, &gEfiFileInfoGuid, &InfoSize, … in WinNtSimpleFileSystemOpen()
1279 …Status = WinNtSimpleFileSystemGetInfo (&NewPrivateFile->EfiFile, &gEfiFileInfoGuid, &InfoSize, Inf… in WinNtSimpleFileSystemOpen()
1288 WinNtSimpleFileSystemSetInfo (&NewPrivateFile->EfiFile, &gEfiFileInfoGuid, InfoSize, Info); in WinNtSimpleFileSystemOpen()
1296 if (NewPrivateFile) { in WinNtSimpleFileSystemOpen()
1297 if (NewPrivateFile->FileName) { in WinNtSimpleFileSystemOpen()
1298 FreePool (NewPrivateFile->FileName); in WinNtSimpleFileSystemOpen()
1301 if (NewPrivateFile->FilePath) { in WinNtSimpleFileSystemOpen()
1302 FreePool (NewPrivateFile->FilePath); in WinNtSimpleFileSystemOpen()
1305 FreePool (NewPrivateFile); in WinNtSimpleFileSystemOpen()
1308 *NewHandle = &NewPrivateFile->EfiFile; in WinNtSimpleFileSystemOpen()
1309 if (StrCmp (NewPrivateFile->FileName, PrivateRoot->FilePath) == 0) { in WinNtSimpleFileSystemOpen()
1310 NewPrivateFile->IsRootDirectory = TRUE; in WinNtSimpleFileSystemOpen()