Nikolay Sivov : ole32: Fix QueryInterface for file-based ILockBytes.
Alexandre Julliard
julliard at winehq.org
Wed Jul 18 12:44:39 CDT 2012
Module: wine
Branch: master
Commit: 382acd526fd6e226eb2f6afd085454f7f7ae7099
URL: http://source.winehq.org/git/wine.git/?a=commit;h=382acd526fd6e226eb2f6afd085454f7f7ae7099
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Wed Jul 18 10:05:26 2012 +0400
ole32: Fix QueryInterface for file-based ILockBytes.
---
dlls/ole32/filelockbytes.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/ole32/filelockbytes.c b/dlls/ole32/filelockbytes.c
index ac0263c..ce74566 100644
--- a/dlls/ole32/filelockbytes.c
+++ b/dlls/ole32/filelockbytes.c
@@ -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
{
More information about the wine-cvs
mailing list