fix leak
This commit is contained in:
parent
0cecae2dd1
commit
ae96b127e1
1 changed files with 1 additions and 1 deletions
|
|
@ -19,8 +19,8 @@ static void detect_darktheme(MwLL handle){
|
||||||
if(err != ERROR_SUCCESS) return;
|
if(err != ERROR_SUCCESS) return;
|
||||||
|
|
||||||
err = RegQueryValueEx(hkey, "AppsUseLightTheme", NULL, &type, (PBYTE)&dw, &sz);
|
err = RegQueryValueEx(hkey, "AppsUseLightTheme", NULL, &type, (PBYTE)&dw, &sz);
|
||||||
if(err != ERROR_SUCCESS || type != REG_DWORD){
|
|
||||||
RegCloseKey(hkey);
|
RegCloseKey(hkey);
|
||||||
|
if(err != ERROR_SUCCESS || type != REG_DWORD){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue