File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -44,15 +44,15 @@ static bool cbMiniDump(int argc, char* argv[])
44
44
// Disable all software breakpoints
45
45
std::vector<duint> disabled_breakpoints;
46
46
{
47
- BPMAP bplist;
47
+ BPMAP bplist = {} ;
48
48
DbgGetBpList (bp_normal, &bplist);
49
49
for (int i = 0 ; i < bplist.count ; i++)
50
50
{
51
51
const auto & bp = bplist.bp [i];
52
52
if (bp.active && bp.enabled )
53
53
{
54
54
char cmd[256 ] = " " ;
55
- sprintf_s (cmd, " bd 0x%p" , bp.addr );
55
+ sprintf_s (cmd, " bd 0x%p" , ( void *) bp.addr );
56
56
if (DbgCmdExecDirect (cmd))
57
57
disabled_breakpoints.push_back (bp.addr );
58
58
}
@@ -90,7 +90,7 @@ static bool cbMiniDump(int argc, char* argv[])
90
90
for (auto addr : disabled_breakpoints)
91
91
{
92
92
char cmd[256 ] = " " ;
93
- sprintf_s (cmd, " be 0x%p" , addr);
93
+ sprintf_s (cmd, " be 0x%p" , ( void *) addr);
94
94
DbgCmdExecDirect (cmd);
95
95
}
96
96
You can’t perform that action at this time.
0 commit comments