winspool: Forward EnumFormsA() to EnumFormsW().

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Huw Davies 2021-05-19 14:43:12 +01:00 committed by Alexandre Julliard
parent fc947eef19
commit 0cddf6fe21
1 changed files with 13 additions and 5 deletions

View File

@ -7457,12 +7457,20 @@ BOOL WINAPI DeletePrintProvidorW(LPWSTR pName, LPWSTR pEnvironment, LPWSTR pPrin
/****************************************************************************** /******************************************************************************
* EnumFormsA (WINSPOOL.@) * EnumFormsA (WINSPOOL.@)
*/ */
BOOL WINAPI EnumFormsA( HANDLE hPrinter, DWORD Level, LPBYTE pForm, BOOL WINAPI EnumFormsA( HANDLE printer, DWORD level, BYTE *form, DWORD size, DWORD *needed, DWORD *count )
DWORD cbBuf, LPDWORD pcbNeeded, LPDWORD pcReturned )
{ {
FIXME("%p %x %p %x %p %p\n", hPrinter, Level, pForm, cbBuf, pcbNeeded, pcReturned); const DWORD *string_info = form_string_info( level );
SetLastError(ERROR_CALL_NOT_IMPLEMENTED); BOOL ret;
return FALSE; DWORD i;
if (!string_info) return FALSE;
ret = EnumFormsW( printer, level, form, size, needed, count );
if (ret)
for (i = 0; i < *count; i++)
packed_struct_WtoA( form + i * string_info[0], string_info );
return ret;
} }
/****************************************************************************** /******************************************************************************