diff --git a/dlls/ole32/ole2.c b/dlls/ole32/ole2.c index e58385bdf71..e8793fc226d 100644 --- a/dlls/ole32/ole2.c +++ b/dlls/ole32/ole2.c @@ -284,7 +284,7 @@ HRESULT WINAPI RegisterDragDrop( if (!COM_CurrentApt()) { ERR("COM not initialized\n"); - return CO_E_NOTINITIALIZED; + return E_OUTOFMEMORY; } if (!pDropTarget) diff --git a/dlls/ole32/tests/dragdrop.c b/dlls/ole32/tests/dragdrop.c index 48b308cd934..15610661c29 100644 --- a/dlls/ole32/tests/dragdrop.c +++ b/dlls/ole32/tests/dragdrop.c @@ -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);