Tools: Reformat to current clang-format standard

This commit is contained in:
Chris Hennes
2023-09-02 12:43:51 -05:00
committed by Chris Hennes
parent 2e4ed1ae99
commit c1825036a6
13 changed files with 214 additions and 120 deletions

View File

@@ -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);
}