equal
deleted
inserted
replaced
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); |