Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
m417z
kdlibcpp
Commits
9126f440
Commit
9126f440
authored
Dec 30, 2018
by
ussrhero
Browse files
fixed loadModule exception text
parent
809848cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
2 deletions
+24
-2
kdlib/source/module.cpp
kdlib/source/module.cpp
+24
-2
No files found.
kdlib/source/module.cpp
View file @
9126f440
...
...
@@ -16,7 +16,16 @@ namespace kdlib {
ModulePtr
loadModule
(
const
std
::
wstring
&
name
)
{
return
loadModule
(
findModuleBase
(
name
)
);
try
{
return
loadModule
(
findModuleBase
(
name
));
}
catch
(
DbgException
&
)
{}
std
::
wstringstream
sstr
;
sstr
<<
L"Failed to find module '"
<<
name
<<
"'"
;
throw
DbgWideException
(
sstr
.
str
());
}
///////////////////////////////////////////////////////////////////////////////
...
...
@@ -24,7 +33,20 @@ ModulePtr loadModule( const std::wstring &name )
ModulePtr
loadModule
(
MEMOFFSET_64
offset
)
{
MEMOFFSET_64
moduleOffset
=
findModuleBase
(
addr64
(
offset
)
);
MEMOFFSET_64
moduleOffset
=
0
;
try
{
moduleOffset
=
findModuleBase
(
addr64
(
offset
)
);
}
catch
(
DbgException
&
)
{
std
::
wstringstream
sstr
;
sstr
<<
L"Failed to find module by offset "
<<
std
::
hex
<<
addr64
(
offset
);
throw
DbgWideException
(
sstr
.
str
());
}
ModulePtr
module
=
ProcessMonitor
::
getModule
(
offset
);
if
(
!
module
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment