From ed93b63b4572098a1ef42a42abb809728871e942 Mon Sep 17 00:00:00 2001 From: Juergen Schmied Date: Sun, 20 Feb 2000 18:38:19 +0000 Subject: [PATCH] Fixes. --- dlls/shell32/classes.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/dlls/shell32/classes.c b/dlls/shell32/classes.c index 6bfa2a3a681..91470257455 100644 --- a/dlls/shell32/classes.c +++ b/dlls/shell32/classes.c @@ -121,6 +121,7 @@ BOOL HCR_GetClassName (REFIID riid, LPSTR szDest, DWORD len) TRACE("%s\n",xriid ); + szDest[0] = 0; if (!RegOpenKeyExA(HKEY_CLASSES_ROOT,xriid,0,KEY_READ,&hkey)) { if (!RegQueryValueExA(hkey,"",0,NULL,szDest,&len)) @@ -134,13 +135,13 @@ BOOL HCR_GetClassName (REFIID riid, LPSTR szDest, DWORD len) { if(IsEqualIID(riid, &CLSID_ShellDesktop)) { - LoadStringA(shell32_hInstance, IDS_DESKTOP, szDest, buflen); - ret = TRUE; + if (LoadStringA(shell32_hInstance, IDS_DESKTOP, szDest, buflen)) + ret = TRUE; } else if (IsEqualIID(riid, &CLSID_MyComputer)) { - LoadStringA(shell32_hInstance, IDS_MYCOMPUTER, szDest, buflen); - ret = TRUE; + if(LoadStringA(shell32_hInstance, IDS_MYCOMPUTER, szDest, buflen)) + ret = TRUE; } } -- 2.11.4.GIT