Commit 5e2d890e authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

ole32: RegisterDragDrop should return E_OUTOFMEMORY in the case that COM isn't…

ole32: RegisterDragDrop should return E_OUTOFMEMORY in the case that COM isn't intialised, instead of CO_E_NOTINITIALIZED.
parent 4b8ca91d
...@@ -284,7 +284,7 @@ HRESULT WINAPI RegisterDragDrop( ...@@ -284,7 +284,7 @@ HRESULT WINAPI RegisterDragDrop(
if (!COM_CurrentApt()) if (!COM_CurrentApt())
{ {
ERR("COM not initialized\n"); ERR("COM not initialized\n");
return CO_E_NOTINITIALIZED; return E_OUTOFMEMORY;
} }
if (!pDropTarget) if (!pDropTarget)
......
...@@ -113,7 +113,7 @@ START_TEST(dragdrop) ...@@ -113,7 +113,7 @@ START_TEST(dragdrop)
HRESULT hr; HRESULT hr;
hr = RegisterDragDrop(GetDesktopWindow(), &DropTarget); 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); OleInitialize(NULL);
......
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