Tools: Reformat to current clang-format standard
This commit is contained in:
committed by
Chris Hennes
parent
2e4ed1ae99
commit
c1825036a6
@@ -78,8 +78,9 @@ STDAPI_(ULONG) DllAddRef()
|
||||
STDAPI_(ULONG) DllRelease()
|
||||
{
|
||||
LONG cRef = InterlockedDecrement(&g_cRef);
|
||||
if (0 > cRef)
|
||||
if (0 > cRef) {
|
||||
cRef = 0;
|
||||
}
|
||||
return cRef;
|
||||
}
|
||||
|
||||
@@ -170,8 +171,12 @@ STDAPI CreateRegistryKey(REGKEY_SUBKEY_AND_VALUE* pKey)
|
||||
}
|
||||
|
||||
if (SUCCEEDED(hr)) {
|
||||
LSTATUS status = SHSetValue(
|
||||
pKey->hKey, pKey->lpszSubKey, pKey->lpszValue, pKey->dwType, pvData, (DWORD)cbData);
|
||||
LSTATUS status = SHSetValue(pKey->hKey,
|
||||
pKey->lpszSubKey,
|
||||
pKey->lpszValue,
|
||||
pKey->dwType,
|
||||
pvData,
|
||||
(DWORD)cbData);
|
||||
if (NOERROR != status) {
|
||||
hr = HRESULT_FROM_WIN32(status);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user