version: Move GetFileVersionInfoSize(A/W) implemementation to GetFileVersionInfoSizeEx(A/W).
This commit is contained in:
parent
8d42c76e88
commit
e3ae89e8e2
|
@ -606,12 +606,35 @@ typedef struct
|
|||
* GetFileVersionInfoSizeW [VERSION.@]
|
||||
*/
|
||||
DWORD WINAPI GetFileVersionInfoSizeW( LPCWSTR filename, LPDWORD handle )
|
||||
{
|
||||
return GetFileVersionInfoSizeExW( 0, filename, handle );
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
* GetFileVersionInfoSizeA [VERSION.@]
|
||||
*/
|
||||
DWORD WINAPI GetFileVersionInfoSizeA( LPCSTR filename, LPDWORD handle )
|
||||
{
|
||||
return GetFileVersionInfoSizeExA( 0, filename, handle );
|
||||
}
|
||||
|
||||
/******************************************************************************
|
||||
* GetFileVersionInfoSizeExW [VERSION.@]
|
||||
*/
|
||||
DWORD WINAPI GetFileVersionInfoSizeExW( DWORD flags, LPCWSTR filename, LPDWORD handle )
|
||||
{
|
||||
DWORD len, offset, magic = 1;
|
||||
HFILE lzfd;
|
||||
HMODULE hModule;
|
||||
OFSTRUCT ofs;
|
||||
|
||||
if (flags)
|
||||
{
|
||||
FIXME("stub: %x %s %p\n", flags, wine_dbgstr_w(filename), handle);
|
||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
return 0;
|
||||
}
|
||||
|
||||
TRACE("(%s,%p)\n", debugstr_w(filename), handle );
|
||||
|
||||
if (handle) *handle = 0;
|
||||
|
@ -676,10 +699,10 @@ DWORD WINAPI GetFileVersionInfoSizeW( LPCWSTR filename, LPDWORD handle )
|
|||
}
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
* GetFileVersionInfoSizeA [VERSION.@]
|
||||
/******************************************************************************
|
||||
* GetFileVersionInfoSizeExA [VERSION.@]
|
||||
*/
|
||||
DWORD WINAPI GetFileVersionInfoSizeA( LPCSTR filename, LPDWORD handle )
|
||||
DWORD WINAPI GetFileVersionInfoSizeExA( DWORD flags, LPCSTR filename, LPDWORD handle )
|
||||
{
|
||||
UNICODE_STRING filenameW;
|
||||
DWORD retval;
|
||||
|
@ -691,7 +714,7 @@ DWORD WINAPI GetFileVersionInfoSizeA( LPCSTR filename, LPDWORD handle )
|
|||
else
|
||||
filenameW.Buffer = NULL;
|
||||
|
||||
retval = GetFileVersionInfoSizeW(filenameW.Buffer, handle);
|
||||
retval = GetFileVersionInfoSizeExW(0, filenameW.Buffer, handle);
|
||||
|
||||
RtlFreeUnicodeString(&filenameW);
|
||||
|
||||
|
@ -1614,26 +1637,6 @@ DWORD WINAPI VerInstallFileW(
|
|||
return ret;
|
||||
}
|
||||
|
||||
/******************************************************************************
|
||||
* GetFileVersionInfoSizeExA [VERSION.@]
|
||||
*/
|
||||
DWORD WINAPI GetFileVersionInfoSizeExA(DWORD flags, LPCSTR filename, LPDWORD handle)
|
||||
{
|
||||
FIXME("stub: %u %s %p\n", flags, wine_dbgstr_a(filename), handle);
|
||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/******************************************************************************
|
||||
* GetFileVersionInfoSizeExW [VERSION.@]
|
||||
*/
|
||||
DWORD WINAPI GetFileVersionInfoSizeExW(DWORD flags, LPCWSTR filename, LPDWORD handle)
|
||||
{
|
||||
FIXME("stub: %u %s %p\n", flags, wine_dbgstr_w(filename), handle);
|
||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/******************************************************************************
|
||||
* GetFileVersionInfoExA [VERSION.@]
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue