1
0
Fork 0

fix mistakes

This commit is contained in:
torusrxxx 2018-04-05 23:37:32 +08:00 committed by Duncan Ogilvie
parent 4cf5508b5f
commit 1cd3cfc469
6 changed files with 13 additions and 13 deletions

View File

@ -406,7 +406,7 @@ void TraceRecordManager::TraceExecuteRecord(const Zydis & newInstruction)
if(written < DWORD(WriteBufferPtr - WriteBuffer)) //Disk full?
{
CloseHandle(rtFile);
String error = stringformatinline(StringUtils::sprintf("{wineerror@%d}", GetLastError()));
String error = stringformatinline(StringUtils::sprintf("{winerror@%d}", GetLastError()));
dprintf(QT_TRANSLATE_NOOP("DBG", "Run trace has stopped unexpectedly because WriteFile() failed. GetLastError()= %s .\r\n"), error.c_str());
rtEnabled = false;
}
@ -551,7 +551,7 @@ bool TraceRecordManager::enableRunTrace(bool enabled, const char* fileName)
}
else
{
String error = stringformatinline(StringUtils::sprintf("{wineerror@%d}", GetLastError()));
String error = stringformatinline(StringUtils::sprintf("{winerror@%d}", GetLastError()));
dprintf(QT_TRANSLATE_NOOP("DBG", "Cannot create run trace file. GetLastError()= %s .\r\n"), error.c_str());
return false;
}

View File

@ -187,7 +187,7 @@ bool cbDebugStop(int argc, char* argv[])
break;
case WAIT_FAILED:
String error = stringformatinline(StringUtils::sprintf("{wineerror@%d}", GetLastError()));
String error = stringformatinline(StringUtils::sprintf("{winerror@%d}", GetLastError()));
dprintf_untranslated("WAIT_FAILED, GetLastError() = %s\n", error.c_str());
return false;
}

View File

@ -86,7 +86,7 @@ bool cbHandleClose(int argc, char* argv[])
return false;
if(!handle || !DuplicateHandle(fdProcessInfo->hProcess, HANDLE(handle), NULL, NULL, 0, FALSE, DUPLICATE_CLOSE_SOURCE))
{
String error = stringformatinline(StringUtils::sprintf("{wineerror@%d}", GetLastError()));
String error = stringformatinline(StringUtils::sprintf("{winerror@%d}", GetLastError()));
dprintf(QT_TRANSLATE_NOOP("DBG", "DuplicateHandle failed: %s\n"), error.c_str());
return false;
}

View File

@ -136,7 +136,7 @@ void DbSave(DbLoadSaveType saveType, const char* dbfile, bool disablecompression
if(!dumpSuccess)
{
String error = stringformatinline(StringUtils::sprintf("{wineerror@%d}", GetLastError()));
String error = stringformatinline(StringUtils::sprintf("{winerror@%d}", GetLastError()));
dprintf(QT_TRANSLATE_NOOP("DBG", "\nFailed to write database file!(GetLastError() = %s)\n"), error.c_str());
json_decref(root);
return;
@ -199,7 +199,7 @@ void DbLoad(DbLoadSaveType loadType, const char* dbfile)
FileMap<char> dbMap;
if(!dbMap.Map(databasePathW.c_str()))
{
String error = stringformatinline(StringUtils::sprintf("{wineerror@%d}", GetLastError()));
String error = stringformatinline(StringUtils::sprintf("{winerror@%d}", GetLastError()));
dprintf(QT_TRANSLATE_NOOP("DBG", "\nFailed to read database file!(GetLastError() = %s)\n"), error.c_str());
return;
}
@ -329,7 +329,7 @@ void DbSetPath(const char* Directory, const char* ModulePath)
{
if(GetLastError() != ERROR_ALREADY_EXISTS)
{
String error = stringformatinline(StringUtils::sprintf("{wineerror@%d}", GetLastError()));
String error = stringformatinline(StringUtils::sprintf("{winerror@%d}", GetLastError()));
dprintf(QT_TRANSLATE_NOOP("DBG", "Warning: Failed to create database folder '%s'. GetLastError() = %s\n"), Directory, error.c_str());
}
}
@ -374,7 +374,7 @@ void DbSetPath(const char* Directory, const char* ModulePath)
auto hFile = CreateFileW(testfile.c_str(), GENERIC_WRITE, 0, nullptr, CREATE_ALWAYS, 0, nullptr);
if(hFile == INVALID_HANDLE_VALUE)
{
String error = stringformatinline(StringUtils::sprintf("{wineerror@%d}", GetLastError()));
String error = stringformatinline(StringUtils::sprintf("{winerror@%d}", GetLastError()));
dprintf(QT_TRANSLATE_NOOP("DBG", "Cannot write to the program directory(GetLastError() = %s), try running x64dbg as admin...\n"), error.c_str());
return false;
}

View File

@ -2697,7 +2697,7 @@ static void debugLoopFunction(void* lpParameter, bool attach)
{
if(AttachDebugger(pid, true, fdProcessInfo, (void*)cbAttachDebugger) == false)
{
String error = stringformatinline(StringUtils::sprintf("{wineerror@%d}", GetLastError()));
String error = stringformatinline(StringUtils::sprintf("{winerror@%d}", GetLastError()));
dprintf(QT_TRANSLATE_NOOP("DBG", "Attach to process failed! GetLastError() = %s\n"), error.c_str());
}
}

View File

@ -506,7 +506,7 @@ static DWORD WINAPI DbgScriptDllExecThread(void* a)
dputs(QT_TRANSLATE_NOOP("DBG", "success!\n"));
else
{
String error = stringformatinline(StringUtils::sprintf("{wineerror@%d}", GetLastError()));
String error = stringformatinline(StringUtils::sprintf("{winerror@%d}", GetLastError()));
dprintf(QT_TRANSLATE_NOOP("DBG", "failure (%s)...\n"), error.c_str());
}
@ -543,7 +543,7 @@ static bool DbgScriptDllExec(const char* dll)
}
else
{
String error = stringformatinline(StringUtils::sprintf("{wineerror@%d}", GetLastError()));
String error = stringformatinline(StringUtils::sprintf("{winerror@%d}", GetLastError()));
dprintf(QT_TRANSLATE_NOOP("DBG", "[Script DLL] Failed to find the exports \"AsyncStart\" or \"Start\" (%s)!\n"), error.c_str());
}
@ -552,14 +552,14 @@ static bool DbgScriptDllExec(const char* dll)
dputs(QT_TRANSLATE_NOOP("DBG", "success!\n"));
else
{
String error = stringformatinline(StringUtils::sprintf("{wineerror@%d}", GetLastError()));
String error = stringformatinline(StringUtils::sprintf("{winerror@%d}", GetLastError()));
dprintf(QT_TRANSLATE_NOOP("DBG", "failure (%s)...\n"), error.c_str());
}
}
}
else
{
String error = stringformatinline(StringUtils::sprintf("{wineerror@%d}", GetLastError()));
String error = stringformatinline(StringUtils::sprintf("{winerror@%d}", GetLastError()));
dprintf(QT_TRANSLATE_NOOP("DBG", "[Script DLL] LoadLibary failed (%s)!\n"), error.c_str());
}