win32u: Don't return full OUTLINETEXTMETRICW from __wine_get_file_outline_text_metric.
[wine.git] / dlls / win32u / wrappers.c
blob23dccd55bf119c0aa9b82f91436946b02da168ba
1 /*
2 * Unix call wrappers
4 * Copyright 2021 Jacek Caban for CodeWeavers
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #include "ntstatus.h"
22 #define WIN32_NO_STATUS
23 #include "win32u_private.h"
25 static const struct unix_funcs *unix_funcs;
27 BOOL CDECL __wine_get_icm_profile( HDC hdc, BOOL allow_default, DWORD *size, WCHAR *filename )
29 if (!unix_funcs) return FALSE;
30 return unix_funcs->get_icm_profile( hdc, allow_default, size, filename );
33 BOOL WINAPI __wine_get_file_outline_text_metric( const WCHAR *path, TEXTMETRICW *otm,
34 UINT *em_square, WCHAR *face_name )
36 if (!unix_funcs) return FALSE;
37 return unix_funcs->get_file_outline_text_metric( path, otm, em_square, face_name );
40 BOOL CDECL __wine_send_input( HWND hwnd, const INPUT *input, const RAWINPUT *rawinput )
42 if (!unix_funcs) return FALSE;
43 return unix_funcs->wine_send_input( hwnd, input, rawinput );
46 extern void wrappers_init( unixlib_handle_t handle )
48 const void *args;
49 if (!__wine_unix_call( handle, 1, &args )) unix_funcs = args;