Michael Jung : shell32: Query for localized string in
HCR_GetClassName.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Feb 14 07:27:37 CST 2006
Module: wine
Branch: refs/heads/master
Commit: bbeeb4b5adda184e9776a6405700e1e780d185a4
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=bbeeb4b5adda184e9776a6405700e1e780d185a4
Author: Michael Jung <mjung at iss.tu-darmstadt.de>
Date: Tue Feb 14 10:41:29 2006 +0100
shell32: Query for localized string in HCR_GetClassName.
---
dlls/shell32/classes.c | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/dlls/shell32/classes.c b/dlls/shell32/classes.c
index 3029625..440809c 100644
--- a/dlls/shell32/classes.c
+++ b/dlls/shell32/classes.c
@@ -287,8 +287,11 @@ BOOL HCR_GetClassNameW(REFIID riid, LPWS
szDest[0] = 0;
if (HCR_RegOpenClassIDKey(riid, &hkey))
{
- if (!RegQueryValueExW(hkey, swEmpty, 0, NULL, (LPBYTE)szDest, &len))
- {
+ static const WCHAR wszLocalizedString[] =
+ { 'L','o','c','a','l','i','z','e','d','S','t','r','i','n','g', 0 };
+ if (!RegLoadMUIStringW(hkey, wszLocalizedString, szDest, len, NULL, 0, NULL) ||
+ !RegQueryValueExW(hkey, swEmpty, 0, NULL, (LPBYTE)szDest, &len))
+ {
ret = TRUE;
}
RegCloseKey(hkey);
@@ -319,8 +322,9 @@ BOOL HCR_GetClassNameA(REFIID riid, LPST
szDest[0] = 0;
if (HCR_RegOpenClassIDKey(riid, &hkey))
{
- if (!RegQueryValueExA(hkey,"",0,NULL,(LPBYTE)szDest,&len))
- {
+ if (!RegLoadMUIStringA(hkey,"LocalizedString",szDest,len,NULL,0,NULL) ||
+ !RegQueryValueExA(hkey,"",0,NULL,(LPBYTE)szDest,&len))
+ {
ret = TRUE;
}
RegCloseKey(hkey);
More information about the wine-cvs
mailing list