small fix SafeArryDestroy

Rein Klazes wijn at wanadoo.nl
Sun Jan 30 07:40:00 CST 2005


Hi,

Makes WJChess, a French made chess game, accept moves.

Changelog:
	dlls/oleaut32	: safearray.c
	SafeArrayDestroy() returns success when called with a NULL
	pointer.

Rein.
-------------- next part --------------
--- wine/dlls/oleaut32/safearray.c	2005-01-04 09:48:03.000000000 +0100
+++ mywine/dlls/oleaut32/safearray.c	2005-01-30 14:17:55.000000000 +0100
@@ -1337,7 +1337,7 @@ HRESULT WINAPI SafeArrayDestroy(SAFEARRA
   TRACE("(%p)\n", psa);
 
   if(!psa)
-    return E_INVALIDARG;
+    return S_OK;
 
   if(psa->cLocks > 0)
     return DISP_E_ARRAYISLOCKED;


More information about the wine-patches mailing list