?? unpack.cpp
字號:
#include "stdafx.h"
#include <malloc.h>
#include "ZipSha.h"
#include "UnPack.h"
#include "UnZip.h"
#include "UnZipDate.h"
extern DWORD UnZipMain(UnZipDate* unzipdate);
DWORD GZ_UnPack(BYTE *source,DWORD sourceLen,BYTE *dest,DWORD *destLen)
{
if(*destLen<sourceLen) return DWORD (-1);
DWORD ret; UnZipDate* unzipdate;
unzipdate = (UnZipDate*)malloc(sizeof(UnZipDate));
unzipdate->source1=source, unzipdate->sourceLen1=sourceLen;
unzipdate->dest1=dest, unzipdate->destLen1=*destLen;
//ret=UnZipMain(unzipdate);
__try
{
ret=UnZipMain(unzipdate);
} __except(1)
{
ret = -2;
}
*destLen=unzipdate->outSize;
free(unzipdate);
return ret;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -