Initialize RegisteredClass properly in CoRegisterClassObject to

prevent crash in CoRevokeClassObject when accessing (uninitialized)
pMarshalledData.
This commit is contained in:
Alex Villacís Lasso 2005-07-19 11:40:22 +00:00 committed by Alexandre Julliard
parent 948563267e
commit 0f9ebafbec
1 changed files with 2 additions and 0 deletions

View File

@ -1403,6 +1403,8 @@ HRESULT WINAPI CoRegisterClassObject(
newClass->classIdentifier = *rclsid;
newClass->runContext = dwClsContext;
newClass->connectFlags = flags;
newClass->pMarshaledData = NULL;
/*
* Use the address of the chain node as the cookie since we are sure it's
* unique. FIXME: not on 64-bit platforms.