From d3ef419a857d966d5892fba17fd33f1b19cab7cc Mon Sep 17 00:00:00 2001 From: Hane Date: Fri, 21 Jul 2023 22:43:12 +0200 Subject: [PATCH] sowwy uwu --- src/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index fadb30e..8a44426 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -262,7 +262,7 @@ uint64_t estimandoFreq(){ if(status != ERROR_SUCCESS) { RegCloseKey(key); - return -3 + return -3; } if (CSTR_EQUAL == CompareStringEx( @@ -294,7 +294,7 @@ uint64_t estimandoFreq(){ LPDWORD PMHz = (LPDWORD)dataContent; DWORD MHz = *PMHz; free(dataContent); - RegCloseKey(key); + status = RegCloseKey(key); return MHz * 1000000; //break; } @@ -302,8 +302,8 @@ uint64_t estimandoFreq(){ } if(status != ERROR_SUCCESS) { - RegCloseKey(key); - return -4 + status = RegCloseKey(key); + return -4; } }