From 169c7b54b6d0863f283059ada6dba4a492a96b0a Mon Sep 17 00:00:00 2001 From: "SND\\kernelnet_cp" Date: Thu, 17 Jan 2013 12:15:44 +0000 Subject: [PATCH] [0.2.x] fixed : size of pointer to a custom defined type is equal zero git-svn-id: https://pykd.svn.codeplex.com/svn@82319 9b283d60-5439-405e-af05-b73fd8c4d996 --- pykd/customtypes.h | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/pykd/customtypes.h b/pykd/customtypes.h index 1d8d43b..462b479 100644 --- a/pykd/customtypes.h +++ b/pykd/customtypes.h @@ -57,11 +57,12 @@ class CustomBase : public UdtTypeInfoBase protected: CustomBase( const std::string &name, ULONG pointerSize, ULONG align ) : - UdtTypeInfoBase( name ), - m_size( 0 ), - m_ptrSize( pointerSize ), - m_align( align ) - {} + UdtTypeInfoBase( name ) + { + m_ptrSize = pointerSize; + m_align = align; + m_size = 0; + } void throwIfFiledExist(const std::string &fieldName); void throwIfTypeRecursive(TypeInfoPtr type); @@ -74,12 +75,8 @@ protected: protected: - ULONG m_ptrSize; - ULONG m_align; - std::string m_name; - ULONG m_size; };