Changeset 542 for branches/eraser6/Installer/Bootstrapper/Bootstrapper.cpp
- Timestamp:
- 11/13/2008 12:20:40 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eraser6/Installer/Bootstrapper/Bootstrapper.cpp
r539 r542 114 114 if (srcFile == INVALID_HANDLE_VALUE) 115 115 throw GetErrorMessage(GetLastError()); 116 117 //Seek to the 128th kb.118 LARGE_INTEGER fPos;119 fPos.QuadPart = 0;120 116 #else 121 117 HANDLE srcFile = CreateFileW(Application::Get().GetPath().c_str(), GENERIC_READ, … … 126 122 //Seek to the 128th kb. 127 123 LARGE_INTEGER fPos; 128 fPos.QuadPart = 128 * 1024; 124 fPos.QuadPart = DataOffset; 125 126 if (!SetFilePointerEx(srcFile, fPos, &fPos, FILE_BEGIN)) 127 throw GetErrorMessage(GetLastError()); 129 128 #endif 130 131 if (!SetFilePointerEx(srcFile, fPos, &fPos, FILE_BEGIN))132 throw GetErrorMessage(GetLastError());133 129 134 130 //7z archive database structure … … 183 179 throw GetErrorMessage(GetLastError()); 184 180 destFileSize -= bytesWritten; 181 Application::Get().Yield(); 185 182 } 186 183
Note: See TracChangeset
for help on using the changeset viewer.
