Files
Cmake 14057ed1db strip: 移除原始厂商版权信息
- core/core.h: Core::copyright() 返回空串(保留函数,调用方不变)
- VMProtectCon/main.cc: 横幅有版权串才拼接,空则只打版本
- VMProtect/about_dialog.cc: 版权文本为空时隐藏该 QLabel
- minidumpfixer/main.cpp: 去掉横幅里的厂商版权
- core/vmprotect.rc、shellext/shellext.rc: CompanyName / LegalCopyright 置空
  (ProductName、OriginalFilename 保持不变,属产品标识非版权)
- help/en、help/ru 共 150 个页面: 去掉页脚 \xA9 2006-2015 Copyright VMProtect Software
- core/VMProtectLicense.ini: 测试授权里的厂商用户名/邮箱换成本地占位值
- .NET AssemblyInfo(5 处) 与 utils/x86disasm: 去掉无主版权串
2026-11-23 16:02:09 +08:00

53 lines
1.3 KiB
C++

#include "minidumpfixer.h"
int _tmain(int argc, _TCHAR* argv[])
{
wprintf(L"MiniDump Fixer v 2.0\n\n");
if (argc < 3) {
wprintf(L"Usage: %s dmp_file exe_file\n", PathFindFileNameW(argv[0]));
return 1;
}
const wchar_t *dmp_file_name = argv[1];
if (wcslen(dmp_file_name) == 0) {
wprintf(L"Crash dump file does not specified.");
return 1;
}
const wchar_t *exe_file_name = argv[2];
if (wcslen(dmp_file_name) == 0) {
wprintf(L"Executable file does not specified.");
return 1;
}
FileInfo file_info;
switch (GetFileInfo(exe_file_name, file_info)) {
case ERROR_OPEN:
wprintf(L"Can not open \"%s\".", exe_file_name);
return 1;
break;
case ERROR_INVALID_FORMAT:
wprintf(L"File \"%s\" has an incorrect format.", exe_file_name);
return 1;
break;
}
switch (FixDump(dmp_file_name, file_info)) {
case ERROR_OPEN:
wprintf(L"Can not open \"%s\".", dmp_file_name);
return 1;
break;
case ERROR_INVALID_FORMAT:
wprintf(L"File \"%s\" has an incorrect format.", dmp_file_name);
return 1;
break;
case ERROR_MODULE_NOT_FOUND:
wprintf(L"Module \"%s\" not found in the DMP file.", PathFindFileNameW(exe_file_name));
return 1;
break;
}
wprintf(L"DMP file sucessfully updated.");
return 0;
}