[SETUPAPI/FORMATTING]

- Try to fix some indentation nightmares. No code changes

svn path=/trunk/; revision=53897
This commit is contained in:
Thomas Faber 2011-09-29 22:30:48 +00:00
parent 761d041617
commit a20f6e3513
5 changed files with 489 additions and 495 deletions

View file

@ -3249,8 +3249,7 @@ BOOL WINAPI SetupDiGetDeviceRegistryPropertyA(
} }
} }
ret = SetupDiGetDeviceRegistryPropertyW( ret = SetupDiGetDeviceRegistryPropertyW(DeviceInfoSet,
DeviceInfoSet,
DeviceInfoData, DeviceInfoData,
Property, Property,
&RegType, &RegType,
@ -3594,7 +3593,6 @@ HKEY SETUP_CreateClassKey(HINF hInf)
{ {
return INVALID_HANDLE_VALUE; return INVALID_HANDLE_VALUE;
} }
} }
if (RegSetValueExW(hClassKey, if (RegSetValueExW(hClassKey,
@ -3978,7 +3976,7 @@ BOOL WINAPI SetupDiOpenDeviceInterfaceW(
RegCloseKey(hDevKey); RegCloseKey(hDevKey);
dwIndex++; dwIndex++;
}while(TRUE); } while(TRUE);
RegCloseKey(hKey); RegCloseKey(hKey);
return FALSE; return FALSE;
@ -4669,8 +4667,7 @@ OpenHardwareProfileKey(
} }
if (HwProfile == 0) if (HwProfile == 0)
{ {
rc = RegOpenKeyExW( rc = RegOpenKeyExW(hHWProfilesKey,
hHWProfilesKey,
REGSTR_KEY_CURRENT, REGSTR_KEY_CURRENT,
0, 0,
KEY_CREATE_SUB_KEY, KEY_CREATE_SUB_KEY,
@ -4681,8 +4678,7 @@ OpenHardwareProfileKey(
WCHAR subKey[5]; WCHAR subKey[5];
snprintfW(subKey, 4, InstanceKeyFormat, HwProfile); snprintfW(subKey, 4, InstanceKeyFormat, HwProfile);
subKey[4] = '\0'; subKey[4] = '\0';
rc = RegOpenKeyExW( rc = RegOpenKeyExW(hHWProfilesKey,
hHWProfilesKey,
subKey, subKey,
0, 0,
KEY_CREATE_SUB_KEY, KEY_CREATE_SUB_KEY,
@ -4996,8 +4992,7 @@ SETUPAPI_GetCurrentHwProfile(
LONG rc; LONG rc;
DWORD ret = (DWORD)-1; DWORD ret = (DWORD)-1;
rc = RegOpenKeyExW( rc = RegOpenKeyExW(((struct DeviceInfoSet *)DeviceInfoSet)->HKLM,
((struct DeviceInfoSet *)DeviceInfoSet)->HKLM,
REGSTR_PATH_IDCONFIGDB, REGSTR_PATH_IDCONFIGDB,
0, /* Options */ 0, /* Options */
KEY_QUERY_VALUE, KEY_QUERY_VALUE,
@ -5009,8 +5004,7 @@ SETUPAPI_GetCurrentHwProfile(
} }
dwLength = sizeof(DWORD); dwLength = sizeof(DWORD);
rc = RegQueryValueExW( rc = RegQueryValueExW(hKey,
hKey,
REGSTR_VAL_CURRENTCONFIG, REGSTR_VAL_CURRENTCONFIG,
NULL, NULL,
&dwRegType, &dwRegType,