[pykd] fixed : issue #5 (loadAnsiStr error string)

This commit is contained in:
ussrhero 2017-12-25 15:51:29 +03:00
parent d2c70b68bc
commit 1eec5fafa5
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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();