Module: wine Branch: master Commit: 1c13e6221a9092121f8e05b1aaf9ccc1c202a74c URL: http://source.winehq.org/git/wine.git/?a=commit;h=1c13e6221a9092121f8e05b1aa...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Mon Sep 9 11:36:36 2013 +0400
shell32: Remove asserts on invalid parameters.
---
dlls/shell32/assoc.c | 6 ------ 1 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/dlls/shell32/assoc.c b/dlls/shell32/assoc.c index 848bf87..d28fa20 100644 --- a/dlls/shell32/assoc.c +++ b/dlls/shell32/assoc.c @@ -18,7 +18,6 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ #include <stdarg.h> -#include <assert.h>
#define COBJMACROS #include "windef.h" @@ -224,7 +223,6 @@ static HRESULT ASSOC_GetValue(HKEY hkey, const WCHAR *name, void **data, DWORD * DWORD size; LONG ret;
- assert(data); ret = RegQueryValueExW(hkey, name, 0, NULL, NULL, &size); if (ret != ERROR_SUCCESS) return HRESULT_FROM_WIN32(ret); @@ -337,8 +335,6 @@ static HRESULT ASSOC_GetExecutable(IQueryAssociationsImpl *This, WCHAR *pszEnd; HRESULT hr;
- assert(len); - hr = ASSOC_GetCommand(This, pszExtra, &pszCommand); if (FAILED(hr)) return hr; @@ -376,8 +372,6 @@ static HRESULT ASSOC_GetExecutable(IQueryAssociationsImpl *This, static HRESULT ASSOC_ReturnData(void *out, DWORD *outlen, const void *data, DWORD datalen) { - assert(outlen); - if (out) { if (*outlen < datalen)