Ensure that CreateFileMoniker functions don't return a bogus moniker

object on failure.
This commit is contained in:
Gavriel State 1998-11-15 09:21:54 +00:00 committed by Alexandre Julliard
parent c77c5928d2
commit 28e226b6cf
1 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,7 @@ CreateFileMoniker16(
LPMONIKER * ppmk /* [out] new moniker object */
) {
FIXME(ole,"(%s,%p),stub!\n",lpszPathName,ppmk);
*ppmk = NULL;
return E_FAIL;
}
@ -42,5 +43,6 @@ CreateFileMoniker32(
LPMONIKER * ppmk /* [out] new moniker object */
) {
FIXME(ole,"(%s,%p),stub!\n",debugstr_w(lpszPathName),ppmk);
*ppmk = NULL;
return E_FAIL;
}