Commit 28e226b6 authored by Gavriel State's avatar Gavriel State Committed by Alexandre Julliard

Ensure that CreateFileMoniker functions don't return a bogus moniker

object on failure.
parent c77c5928
......@@ -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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment