ole32: RegisterDragDrop should return E_OUTOFMEMORY in the case that COM isn't intialised, instead of CO_E_NOTINITIALIZED.

This commit is contained in:
Rob Shearman 2007-10-07 16:52:28 +02:00 committed by Alexandre Julliard
parent 4b8ca91d03
commit 5e2d890e5d
2 changed files with 2 additions and 2 deletions

View File

@ -284,7 +284,7 @@ HRESULT WINAPI RegisterDragDrop(
if (!COM_CurrentApt())
{
ERR("COM not initialized\n");
return CO_E_NOTINITIALIZED;
return E_OUTOFMEMORY;
}
if (!pDropTarget)

View File

@ -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);