[4/4] version: Replace kernel32 translation info in non-US locales.

Alexandre Julliard julliard at winehq.org
Tue Feb 14 03:18:51 CST 2017


Akihiro Sagawa <sagawa.aki at gmail.com> writes:

> @@ -1078,6 +1086,67 @@ BOOL WINAPI VerQueryValueW( LPCVOID pBlock, LPCWSTR lpSubBlock,
>      return VersionInfo32_QueryValue(info, lpSubBlock, lplpBuffer, puLen, NULL);
>  }
>  
> +/* replace translation info as some apps requires localised info from kernel32 */
> +static void replace_translation_info( void *info, DWORD len )
> +{
> +    static const WCHAR product_nameW[] = {'\\','S','t','r','i','n','g',
> +                                          'F','i','l','e','I','n','f','o',
> +                                          '\\','0','4','0','9','0','4','B','0',
> +                                          '\\','P','r','o','d','u','c','t',
> +                                          'N','a','m','e',0};
> +    static const WCHAR original_filenameW[] = {'\\','S','t','r','i','n','g',
> +                                               'F','i','l','e','I','n','f','o',
> +                                               '\\','0','4','0','9','0','4','B','0',
> +                                               '\\','O','r','i','g','i','n','a','l',
> +                                               'F','i','l','e','n','a','m','e',0};
> +    static const WCHAR wineW[] = {'W','i','n','e', 0};
> +    static const WCHAR kernel32W[] = {'k','e','r','n','e','l','3','2','.','d','l','l',0};

That's very hackish, we need a more general solution.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list