[
板情報
|
カテゴリランキング
]
したらばTOP
■掲示板に戻る■
全部
1-100
最新50
|
メール
|
1-
101-
201-
301-
401-
501-
601-
701-
801-
901-
1001-
1101-
1201-
1301-
1401-
1501-
1601-
1701-
1801-
1901-
2001-
2101-
2201-
2301-
2401-
2501-
2601-
2701-
2801-
2901-
3001-
3101-
3201-
3301-
3401-
3501-
3601-
3701-
3801-
3901-
4001-
4101-
4201-
4301-
4401-
4501-
4601-
4701-
4801-
4901-
5001-
5101-
5201-
5301-
5401-
この機能を使うにはJavaScriptを有効にしてください
|
管理人の独り言(プログラミング関連)
1322
:
774さん
:2009/01/25(日) 23:50:04 ID:fHt2HuPQ0
逆汗したのをC++ソースに落とした。
-----
bool ExpendSar(FILE *fp, int *p/*?*/){
//2112bytes Allocation
FILE *l4 = 0;
void *l3 = 0;
BYTE l1_3 = 0;
wchar_t l528[260];
GetTempPathW(260, l528);
char l398[1024];
if(!fgets(l398, 1024, fp)) return false;
//ebx == 1
for(;;){
if(!strspn(l398, "CheckSum=")){
int l2 = atol(l398);
wchar_t l142[260/*正確には不明*/];
wsprintfW(l142, L"%s/Sleipnir_Sar_Temp_%08d", l528, *p);
if(FMisc::IsWinNT()){
if(!FMisc::IsFileExist(l142)){
SECURITY_ATTRIBUTES sa;
memset(&sa, 0, sizeof(sa));
SECURITY_DESCRIPTOR sd;
InitializeSecurityDescriptor(&sd, 1);
SetSecurityDescriptorDacl(&sd, 1, 0, 1);
DWORD l5 = 0;
HANDLE hFile = CreateFileW(
l142,
GENERIC_WRITE | GENERIC_ALL,
FILE_SHARE_READ | FILE_SHARE_WRITE,
&sa,
CREATE_ALWAYS,
FILE_ATTRIBUTE_ARCHIVE,
NULL
);
FlushFileBuffers(hFile);
CloseHandle(hFile);
}
}
FILE *l4 = _wfopen(l142, L"wb");
if(!cfp){
if(l3) free(l3);
return false;
}
l3 = malloc(l2);
if(!l3){
if(l4) fclose(l4);
if(l3) free(l3);
return false;
}
if(fread(l3, 1, l2, fp) != l2){
if(l4) fclose(l4);
if(l3) free(l3);
return false;
}
if(fwrite(l3, 1, l2, l4) != l2){
if(l4) fclose(l4);
if(l3) free(l3);
return false;
}
free(l3);
fclose(l4);
if(fread(l398, 1, 1, fp) != 1){
if(l4) fclose(l4);
if(l3) free(l3);
return false;
}
l1_3 += l2; //MOV AL,BYTE PTR SS:[LOCAL.2]
//ADD BYTE PTR SS:[LOCAL.1+3],AL
++(*p);
if(!fgets(l398, 1024, fp)){
if(l4) fclose(l4);
if(l3) free(l3);
return false;
}
}else{
if(l1_3 != atol(l398 + 9)){
if(l4) fclose(l4);
if(l3) free(l3);
return false;
}else{
return true;
}
}
}
}
新着レスの表示
名前:
E-mail
(省略可)
:
※書き込む際の注意事項は
こちら
※画像アップローダーは
こちら
(画像を表示できるのは「画像リンクのサムネイル表示」がオンの掲示板に限ります)
スマートフォン版
掲示板管理者へ連絡
無料レンタル掲示板