From 5e20dfc1a3d68a9e92f540a63758f3d4ea09e106 Mon Sep 17 00:00:00 2001 From: sasha0552 Date: Thu, 27 Jun 2024 13:02:43 +0000 Subject: [PATCH] fix win ci --- src/nvapi.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nvapi.cpp b/src/nvapi.cpp index 45bc77f36..847745b33 100644 --- a/src/nvapi.cpp +++ b/src/nvapi.cpp @@ -1,7 +1,7 @@ #include "nvapi.h" #ifdef _WIN32 -# include +# include #elif __linux__ # include #endif @@ -89,7 +89,7 @@ void nvapi_init() { // obtain the address of the nvapi_QueryInterface function if (lib) { #ifdef _WIN32 - nvapi_QueryInterface = (nvapi_QueryInterface_t) GetProcAddress(lib, "nvapi_QueryInterface"); + nvapi_QueryInterface = (nvapi_QueryInterface_t) GetProcAddress((HMODULE) lib, "nvapi_QueryInterface"); #elif __linux__ nvapi_QueryInterface = (nvapi_QueryInterface_t) dlsym(lib, "nvapi_QueryInterface"); #endif @@ -120,7 +120,7 @@ void nvapi_free() { // release the library resources if (lib) { #ifdef _WIN32 - FreeLibrary(lib); + FreeLibrary((HMODULE) lib); #elif __linux__ dlclose(lib); #endif