From 12a480adb1db6632e59b553856545a83b4a65e00 Mon Sep 17 00:00:00 2001 From: sagitario Date: Tue, 10 Aug 2010 13:02:58 +0000 Subject: fixed crash when working with -C (introduced in last version) --- CHANGES | 6 ++++++ VERSION | 2 +- src/cv2pdb.cpp | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 1cf36d1..f271b89 100644 --- a/CHANGES +++ b/CHANGES @@ -119,3 +119,9 @@ Version history table pointer * structs, classes and interfaces now have an internal qualifier attached that allows the preview in autoexp.dat to show better info for structs and interfaces + +2010-08-10 Version 0.16 + + * fixed crash when working with -C (introduced in last version) + + diff --git a/VERSION b/VERSION index d44ad2b..73cc80e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -VERSION = 0.15 +VERSION = 0.16 diff --git a/src/cv2pdb.cpp b/src/cv2pdb.cpp index 27fbb28..025c212 100644 --- a/src/cv2pdb.cpp +++ b/src/cv2pdb.cpp @@ -1872,6 +1872,8 @@ void CV2PDB::ensureUDT(int type, const codeview_type* cvtype) int value, leaf_len = numeric_leaf(&value, &cvtype->struct_v1.structlen); pstrcpy_v(true, (BYTE*) name, (const BYTE*) &cvtype->struct_v1.structlen + leaf_len); + checkUserTypeAlloc(); + codeview_reftype* rdtype = (codeview_reftype*) (userTypes + cbUserTypes); rdtype->fieldlist.id = LF_FIELDLIST_V2; int helpfieldlistType = nextUserType++; -- cgit v0.12