Code style change and rebuild zstd with optimization options

This commit is contained in:
yuanyuanxiang
2025-11-29 23:22:55 +01:00
parent 8d4be0a580
commit ac7a2dcb7e
81 changed files with 14385 additions and 14324 deletions

View File

@@ -76,18 +76,18 @@ inline HKEY GetCurrentUserRegistryKey()
// 检查是否需要关闭注册表根键(非预定义键需要关闭)
inline void CloseUserRegistryKeyIfNeeded(HKEY hKey)
{
if (hKey != HKEY_CURRENT_USER &&
hKey != HKEY_LOCAL_MACHINE &&
hKey != HKEY_USERS &&
hKey != HKEY_CLASSES_ROOT &&
hKey != NULL) {
RegCloseKey(hKey);
}
if (hKey != HKEY_CURRENT_USER &&
hKey != HKEY_LOCAL_MACHINE &&
hKey != HKEY_USERS &&
hKey != HKEY_CLASSES_ROOT &&
hKey != NULL) {
RegCloseKey(hKey);
}
}
#else
#define GetCurrentUserRegistryKey() HKEY_CURRENT_USER
#define CloseUserRegistryKeyIfNeeded(hKey)
#define CloseUserRegistryKeyIfNeeded(hKey)
#endif