mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-30 04:53:04 +00:00
fix leak
This commit is contained in:
@@ -19,8 +19,8 @@ static void detect_darktheme(MwLL handle){
|
||||
if(err != ERROR_SUCCESS) return;
|
||||
|
||||
err = RegQueryValueEx(hkey, "AppsUseLightTheme", NULL, &type, (PBYTE)&dw, &sz);
|
||||
RegCloseKey(hkey);
|
||||
if(err != ERROR_SUCCESS || type != REG_DWORD){
|
||||
RegCloseKey(hkey);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user