ole32: Fix QueryInterface for file-based ILockBytes.

This commit is contained in:
Nikolay Sivov 2012-07-18 10:05:26 +04:00 committed by Alexandre Julliard
parent e7389d875d
commit 382acd526f
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ HRESULT FileLockBytesImpl_Construct(HANDLE hFile, DWORD openFlags, LPCWSTR pwcsN
static HRESULT WINAPI FileLockBytesImpl_QueryInterface(ILockBytes *iface, REFIID riid,
void **ppvObject)
{
if (IsEqualIID(riid, &IID_ILockBytes) || IsEqualIID(riid, &IID_ILockBytes))
if (IsEqualIID(riid, &IID_IUnknown) || IsEqualIID(riid, &IID_ILockBytes))
*ppvObject = iface;
else
{