Changeset 2401 for branches/eraser6/6.0


Ignore:
Timestamp:
12/24/2011 3:09:00 AM (5 months ago)
Author:
lowjoel
Message:

Updated to the LZMA SDK 9.22-beta API.

Location:
branches/eraser6/6.0/Installer/Bootstrapper
Files:
3 edited

Legend:

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

    r1677 r2401  
    116116    size_t CurrentOffset; 
    117117 
    118     static SRes LZMemStreamLook(void* object, void** buf, size_t* size) 
     118    static SRes LZMemStreamLook(void* object, const void** buf, size_t* size) 
    119119    { 
    120120        if (*size == 0) 
     
    238238        size_t convertedChars = 0; 
    239239        wchar_t fileName[MAX_PATH]; 
    240         mbstowcs_s(&convertedChars, fileName, file->Name, sizeof(fileName) / sizeof(fileName[0])); 
     240        SzArEx_GetFileNameUtf16(&db, i, reinterpret_cast<UInt16*>(fileName)); 
    241241         
    242242        //Split the path to get the file name only. 
     
    259259        while (result == SZ_OK && destFileSize) 
    260260        { 
    261             result = SzAr_Extract(&db, &stream.InStream, i, &blockIndex, 
     261            result = SzArEx_Extract(&db, &stream.InStream, i, &blockIndex, 
    262262                &outBuffer, &outBufferSize, &offset, &processedSize, &allocImp, 
    263263                &allocTempImp); 
  • branches/eraser6/6.0/Installer/Bootstrapper/Bootstrapper.vcproj

    r2400 r2401  
    6262            <Tool 
    6363                Name="VCLinkerTool" 
    64                 AdditionalDependencies="comctl32.lib LzmaLib.lib" 
     64                AdditionalDependencies="comctl32.lib 7zLib.lib" 
    6565                OutputFile="$(OutDir)\Bootstrapper.exe" 
    6666                LinkIncremental="2" 
     
    137137            <Tool 
    138138                Name="VCLinkerTool" 
    139                 AdditionalDependencies="comctl32.lib LzmaLib.lib" 
     139                AdditionalDependencies="comctl32.lib 7zLib.lib" 
    140140                OutputFile="$(OutDir)\Bootstrapper.exe" 
    141141                LinkIncremental="1" 
  • branches/eraser6/6.0/Installer/Bootstrapper/stdafx.h

    r1677 r2401  
    3939//7-zip SDK 
    4040extern "C" { 
     41    #include <C/7z.h> 
     42    #include <C/7zAlloc.h> 
    4143    #include <C/7zCrc.h> 
    42     #include <C/Archive/7z/7zIn.h> 
    43     #include <C/Archive/7z/7zAlloc.h> 
    44     #include <C/Archive/7z/7zDecode.h> 
    45     #include <C/Archive/7z/7zExtract.h> 
    4644} 
    4745 
Note: See TracChangeset for help on using the changeset viewer.