ole32: RegisterDragDrop should return E_OUTOFMEMORY in the case that COM isn't intialised, instead of CO_E_NOTINITIALIZED.
This commit is contained in:
parent
4b8ca91d03
commit
5e2d890e5d
|
@ -284,7 +284,7 @@ HRESULT WINAPI RegisterDragDrop(
|
|||
if (!COM_CurrentApt())
|
||||
{
|
||||
ERR("COM not initialized\n");
|
||||
return CO_E_NOTINITIALIZED;
|
||||
return E_OUTOFMEMORY;
|
||||
}
|
||||
|
||||
if (!pDropTarget)
|
||||
|
|
|
@ -113,7 +113,7 @@ START_TEST(dragdrop)
|
|||
HRESULT hr;
|
||||
|
||||
hr = RegisterDragDrop(GetDesktopWindow(), &DropTarget);
|
||||
ok(hr == CO_E_NOTINITIALIZED, "RegisterDragDrop without OLE initialized should have returned CO_E_NOTINITIALIZED instead of 0x%08x\n", hr);
|
||||
ok(hr == E_OUTOFMEMORY, "RegisterDragDrop without OLE initialized should have returned E_OUTOFMEMORY instead of 0x%08x\n", hr);
|
||||
|
||||
OleInitialize(NULL);
|
||||
|
||||
|
|
Loading…
Reference in New Issue