Ignore:
Timestamp:
11/13/2008 12:20:40 PM (4 years ago)
Author:
lowjoel
Message:

Handle the Cancel button clicks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/Installer/Bootstrapper/Bootstrapper.cpp

    r539 r542  
    114114    if (srcFile == INVALID_HANDLE_VALUE) 
    115115        throw GetErrorMessage(GetLastError()); 
    116  
    117     //Seek to the 128th kb. 
    118     LARGE_INTEGER fPos; 
    119     fPos.QuadPart = 0; 
    120116#else 
    121117    HANDLE srcFile = CreateFileW(Application::Get().GetPath().c_str(), GENERIC_READ, 
     
    126122    //Seek to the 128th kb. 
    127123    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()); 
    129128#endif 
    130  
    131     if (!SetFilePointerEx(srcFile, fPos, &fPos, FILE_BEGIN)) 
    132         throw GetErrorMessage(GetLastError()); 
    133129 
    134130    //7z archive database structure 
     
    183179                throw GetErrorMessage(GetLastError()); 
    184180            destFileSize -= bytesWritten; 
     181            Application::Get().Yield(); 
    185182        } 
    186183 
Note: See TracChangeset for help on using the changeset viewer.