Skip to content

Commit 6812fcd

Browse files
authored
Separate PT_CLSID from PT_MV_CLSID
PT_CLSID and PT_MV_CLSID have different structures. PT_CLSID doesn't have a COUNT field in front of it so it doesn't need the call to substr() to trim the leading bytes. When PT_CLSID was encountered it would throw a Ramsey\Uuid\Exception\InvalidUuidStringException because the UUID was too short. Reference to fields: https://web.archive.org/web/20160814154216/http://www.imibo.com/LazyMAPI/MAPIPropTypesList.aspx
1 parent f4bb97b commit 6812fcd

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/MAPI/Property/PropertyStore.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,10 @@ protected function parseProperties($obj)
331331
break;
332332

333333
case '0048': // PT_CLSID
334+
$value = (string)OleGuid::fromBytes($rawProp);
335+
$this->addProperty($key, $value);
336+
break;
337+
334338
case '1048': // PT_MV_CLSID
335339
$value = (string)OleGuid::fromBytes(substr($rawProp, 8));
336340
$this->addProperty($key, $value);
@@ -423,4 +427,4 @@ public function getNameId()
423427
}
424428

425429

426-
}
430+
}

0 commit comments

Comments
 (0)