mfreadwrite/reader: Add missing allocation check (Coverity).
[wine/zf.git] / dlls / amsi / main.c
blobf56e699c3567497f4a3b714006a4959866c6cf6c
1 /*
2 * Copyright 2019 Hans Leidekker for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #include <stdarg.h>
20 #include "windef.h"
21 #include "winbase.h"
22 #include "amsi.h"
23 #include "wine/debug.h"
25 WINE_DEFAULT_DEBUG_CHANNEL(amsi);
27 HRESULT WINAPI AmsiInitialize( const WCHAR *appname, HAMSICONTEXT *context )
29 FIXME( "%s, %p\n", debugstr_w(appname), context );
30 *context = (HAMSICONTEXT)0xdeadbeef;
31 return S_OK;
34 HRESULT WINAPI AmsiOpenSession( HAMSICONTEXT context, HAMSISESSION *session )
36 FIXME( "%p, %p\n", context, session );
37 *session = (HAMSISESSION)0xdeadbeef;
38 return S_OK;
41 void WINAPI AmsiCloseSession( HAMSICONTEXT context, HAMSISESSION session )
43 FIXME( "%p, %p\n", context, session );
46 HRESULT WINAPI AmsiScanBuffer( HAMSICONTEXT context, void *buffer, ULONG length, const WCHAR *name,
47 HAMSISESSION session, AMSI_RESULT *result )
49 FIXME( "%p, %p, %u, %s, %p, %p\n", context, buffer, length, debugstr_w(name), session, result );
50 *result = AMSI_RESULT_NOT_DETECTED;
51 return S_OK;
54 HRESULT WINAPI AmsiScanString( HAMSICONTEXT context, const WCHAR *string, const WCHAR *name,
55 HAMSISESSION session, AMSI_RESULT *result )
57 FIXME( "%p, %s, %s, %p, %p\n", context, debugstr_w(string), debugstr_w(name), session, result );
58 *result = AMSI_RESULT_NOT_DETECTED;
59 return S_OK;
62 void WINAPI AmsiUninitialize( HAMSICONTEXT context )
64 FIXME( "%p\n", context );