{
HRESULT result;
HANDLE handle;
+ char *tmp = new char[wcslen(filename) + 1];
+ wcstombs(tmp, filename, wcslen(filename) + 1);
- _DebugMessage(100, "pluginIoOpen_FILE - filename = %S\n", filename);
+ _DebugMessage(0, "pluginIoOpen_FILE - filename = %s\n", tmp);
io->status = 0;
io->io_errno = 0;
if (context->job_type == JOB_TYPE_BACKUP)
{
- _DebugMessage(100, "Calling HrESEBackupOpenFile\n");
+ _DebugMessage(10, "Calling HrESEBackupOpenFile\n");
result = HrESEBackupOpenFile(hccx, filename, 65535, 1, &backup_file_handle, §ion_size);
if (result)
{
}
else
{
- _DebugMessage(100, "Calling HrESERestoreOpenFile\n");
+ _DebugMessage(10, "Calling HrESERestoreOpenFile for '%s'\n", tmp);
result = HrESERestoreOpenFile(hccx, filename, 1, &restore_file_handle);
if (result == hrRestoreAtFileLevel)
{
restore_at_file_level = true;
+ _DebugMessage(100, "Calling CreateFileW for '%s'\n", tmp);
handle = CreateFileW(filename, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
if (handle == INVALID_HANDLE_VALUE)
{
if (!include_file)
{
tmp_time = (((int64_t)modified_time.dwHighDateTime) << 32) | modified_time.dwLowDateTime;
- //FIXME: this is too big according to mingw
tmp_time -= 116444736000000000LL;
tmp_time /= 10000000;
if (tmp_time > context->job_since)
}
len = wcslen(restore_environment->m_wszRestoreLogPath) + strlen(file_node->name + i) + 1 + 1;
file_node->filename = new WCHAR[len];
- // FIXME: %S not supported under mingw
- //swprintf(file_node->filename, len, L"%s\\%S", restore_environment->m_wszRestoreLogPath, file_node->name + i);
+ wcscpy(file_node->filename, restore_environment->m_wszRestoreLogPath);
+ wcscat(file_node->filename, L"\\");
+ mbstowcs(&file_node->filename[wcslen(file_node->filename)], file_node->name + i, strlen(file_node->name + i) + 1);
context->current_node = file_node;
return bRC_OK;
case 3: