mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-21 04:13:22 +08:00
[pykd] fixed : issue #5 (loadAnsiStr error string)
This commit is contained in:
parent
d2c70b68bc
commit
1eec5fafa5
@ -2,7 +2,7 @@
|
|||||||
#define PYKD_VERSION_MAJOR 0
|
#define PYKD_VERSION_MAJOR 0
|
||||||
#define PYKD_VERSION_MINOR 3
|
#define PYKD_VERSION_MINOR 3
|
||||||
#define PYKD_VERSION_SUBVERSION 3
|
#define PYKD_VERSION_SUBVERSION 3
|
||||||
#define PYKD_VERSION_BUILDNO 1
|
#define PYKD_VERSION_BUILDNO 2
|
||||||
|
|
||||||
#define __VER_STR2__(x) #x
|
#define __VER_STR2__(x) #x
|
||||||
#define __VER_STR1__(x) __VER_STR2__(x)
|
#define __VER_STR1__(x) __VER_STR2__(x)
|
||||||
|
@ -332,7 +332,7 @@ std::string loadAnsiStr(kdlib::MEMOFFSET_64 offset)
|
|||||||
kdlib::MEMOFFSET_64 buffer = kdlib::ptrPtr( offset + kdlib::ptrSize() );
|
kdlib::MEMOFFSET_64 buffer = kdlib::ptrPtr( offset + kdlib::ptrSize() );
|
||||||
|
|
||||||
if ( maximumLength < length )
|
if ( maximumLength < length )
|
||||||
throw kdlib::DbgException("Corrupted UNICODE_STRING structure");
|
throw kdlib::DbgException("Corrupted ANSI_STRING structure");
|
||||||
|
|
||||||
if ( length == 0 )
|
if ( length == 0 )
|
||||||
return std::string();
|
return std::string();
|
||||||
|
Loading…
Reference in New Issue
Block a user