Skip to content

Commit 3487c88

Browse files
committed
pffimport: add support for transferring PT_CLSID propvals
OST files have some PT_CLSID properties.
1 parent 00b7d60 commit 3487c88

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tools/pffimport.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,7 @@ static int recordent_to_tpropval(libpff_record_entry_t *rent, TPROPVAL_ARRAY *ar
479479
throw "PF-1033";
480480

481481
union {
482+
GUID guid;
482483
BINARY bin;
483484
SHORT_ARRAY sa;
484485
LONG_ARRAY la;
@@ -533,6 +534,12 @@ static int recordent_to_tpropval(libpff_record_entry_t *rent, TPROPVAL_ARRAY *ar
533534
u.bin.pv = buf.get();
534535
pv.pvalue = &u.bin;
535536
break;
537+
case PT_CLSID:
538+
if (dsize != sizeof(u.guid))
539+
throw "PF-1040: GUID size incorrect " + std::to_string(dsize);
540+
memcpy(&u.guid, buf.get(), sizeof(u.guid));
541+
pv.pvalue = &u.guid;
542+
break;
536543
case PT_MV_SHORT:
537544
if (dsize != mvnum * sizeof(uint16_t)) {
538545
fprintf(stderr, "Datasize mismatch on %xh\n", pv.proptag);

0 commit comments

Comments
 (0)