secureswitools/swisistools/source/interpretsislib/installer.cpp
changeset 75 2d2d25361590
parent 50 c6e8afe0ba85
equal deleted inserted replaced
69:b18a4bf55ddb 75:2d2d25361590
  1017 				}
  1017 				}
  1018 
  1018 
  1019 				// hash file is always created on the system drive
  1019 				// hash file is always created on the system drive
  1020 				reghashdir[0] = iSystemDrive;
  1020 				reghashdir[0] = iSystemDrive;
  1021 
  1021 
  1022 				LINFO(L"\tCreating hash: " << reghashdir << basename);				
  1022 				LINFO(L"\tCreating hash: " << reghashdir << basename.c_str());				
  1023 				std::wstring hash = hashdir + basename;
  1023 				std::wstring hash = hashdir + basename;
  1024 				HANDLE hFile = MakeSISOpenFile(hash.c_str(), GENERIC_WRITE, CREATE_ALWAYS);		
  1024 				HANDLE hFile = MakeSISOpenFile(hash.c_str(), GENERIC_WRITE, CREATE_ALWAYS);		
  1025 				if( INVALID_HANDLE_VALUE == hFile )
  1025 				if( INVALID_HANDLE_VALUE == hFile )
  1026 				{
  1026 				{
  1027 					throw InterpretSisError(L"FileOpenError - " + hashdir + basename, FILE_ERROR);
  1027 					throw InterpretSisError(L"FileOpenError - " + hashdir + basename, FILE_ERROR);