devenum: Remove unneeded shadow variables.

This commit is contained in:
André Hentschel 2012-04-18 00:11:08 +02:00 committed by Alexandre Julliard
parent 4598c48041
commit 8ef61a98f0
1 changed files with 1 additions and 2 deletions

View File

@ -171,10 +171,10 @@ static void DEVENUM_ReadPinTypes(HKEY hkeyPinKey, REGFILTERPINS *rgPin)
for (i1 = 0; i1 < dwMinorTypes; i1++) for (i1 = 0; i1 < dwMinorTypes; i1++)
{ {
WCHAR wszMinorTypeName[64]; WCHAR wszMinorTypeName[64];
DWORD cName = sizeof(wszMinorTypeName) / sizeof(WCHAR);
CLSID *clsMajorType = NULL, *clsMinorType = NULL; CLSID *clsMajorType = NULL, *clsMinorType = NULL;
HRESULT hr; HRESULT hr;
cName = sizeof(wszMinorTypeName) / sizeof(WCHAR);
if (RegEnumKeyExW(hkeyMajorType, i1, wszMinorTypeName, &cName, NULL, NULL, NULL, NULL) != ERROR_SUCCESS) continue; if (RegEnumKeyExW(hkeyMajorType, i1, wszMinorTypeName, &cName, NULL, NULL, NULL, NULL) != ERROR_SUCCESS) continue;
clsMinorType = CoTaskMemAlloc(sizeof(CLSID)); clsMinorType = CoTaskMemAlloc(sizeof(CLSID));
@ -349,7 +349,6 @@ static HRESULT DEVENUM_RegisterLegacyAmFilters(void)
HKEY hkeyCategoryBaseKey; HKEY hkeyCategoryBaseKey;
WCHAR wszRegKey[MAX_PATH]; WCHAR wszRegKey[MAX_PATH];
HKEY hkeyInstance = NULL; HKEY hkeyInstance = NULL;
HRESULT hr;
if (RegEnumKeyExW(hkeyFilter, i, wszFilterSubkeyName, &cName, NULL, NULL, NULL, NULL) != ERROR_SUCCESS) continue; if (RegEnumKeyExW(hkeyFilter, i, wszFilterSubkeyName, &cName, NULL, NULL, NULL, NULL) != ERROR_SUCCESS) continue;