Skip to content

Commit

Permalink
gamarue warning fox attempt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
kernelwernel committed Dec 6, 2023
1 parent 011d167 commit 67972e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vmaware.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2723,7 +2723,7 @@ struct VM {
#else
HKEY hOpen;
char *szBuff;
int iBuffSize;
unsigned int iBuffSize;
HANDLE hMod;
LONG nRes;

Expand All @@ -2742,7 +2742,7 @@ struct VM {
nRes = RegOpenKeyEx(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows\\CurrentVersion", 0L, KEY_QUERY_VALUE, &hOpen);
if (nRes == ERROR_SUCCESS) {
iBuffSize = sizeof(szBuff);
nRes = RegQueryValueEx(hOpen, "ProductId", NULL, NULL, (unsigned char*)szBuff, static_cast<LPDWORD>(iBuffSize));
nRes = RegQueryValueEx(hOpen, "ProductId", NULL, NULL, (unsigned char*)szBuff, reinterpret_cast<LPDWORD>(iBuffSize));
if (nRes == ERROR_SUCCESS) {
if (strcmp(szBuff, "55274-640-2673064-23950") == 0) { // joebox
return add(JOEBOX);
Expand Down

0 comments on commit 67972e1

Please sign in to comment.