Changeset View
Changeset View
Standalone View
Standalone View
src/kdbgwin/msvc_generator.cpp
Show First 20 Lines • Show All 72 Lines • ▼ Show 20 Line(s) | 69 | { | |||
---|---|---|---|---|---|
73 | DWORD dwDisplacement = 0; | 73 | DWORD dwDisplacement = 0; | ||
74 | 74 | | |||
75 | if (!SymGetLineFromAddr64(m_process.GetHandle(), m_currentFrame.AddrPC.Offset, &dwDisplacement, &line)) | 75 | if (!SymGetLineFromAddr64(m_process.GetHandle(), m_currentFrame.AddrPC.Offset, &dwDisplacement, &line)) | ||
76 | { | 76 | { | ||
77 | qCCritical(DRKONQI_LOG) << "SymGetLineFromAddr64 failed: " << GetLastError(); | 77 | qCCritical(DRKONQI_LOG) << "SymGetLineFromAddr64 failed: " << GetLastError(); | ||
78 | return QString::fromLatin1(DEFAULT_FILE); | 78 | return QString::fromLatin1(DEFAULT_FILE); | ||
79 | } | 79 | } | ||
80 | 80 | | |||
81 | return QString(line.FileName); | 81 | return QString::fromLatin1(const_cast<char *>(line.FileName)); | ||
82 | } | 82 | } | ||
83 | 83 | | |||
84 | int MsvcGenerator::GetLine() | 84 | int MsvcGenerator::GetLine() | ||
85 | { | 85 | { | ||
86 | IMAGEHLP_LINE64 line; | 86 | IMAGEHLP_LINE64 line; | ||
87 | ZeroMemory(&line, sizeof(line)); | 87 | ZeroMemory(&line, sizeof(line)); | ||
88 | line.SizeOfStruct = sizeof(IMAGEHLP_LINE64); | 88 | line.SizeOfStruct = sizeof(IMAGEHLP_LINE64); | ||
89 | DWORD dwDisplacement = 0; | 89 | DWORD dwDisplacement = 0; | ||
▲ Show 20 Lines • Show All 50 Lines • Show Last 20 Lines |