diff --git a/drivers/upsdrvctl.c b/drivers/upsdrvctl.c index 645a8cc0ef..6e4c022a91 100644 --- a/drivers/upsdrvctl.c +++ b/drivers/upsdrvctl.c @@ -1652,7 +1652,7 @@ int main(int argc, char **argv) #ifndef WIN32 driverpath = xstrdup(DRVPATH); /* set default */ #else /* WIN32 */ - driverpath = getfullpath(NULL); /* Relative path in WIN32 */ + driverpath = getfullpath(PATH_BIN); /* Relative path in WIN32 */ #endif /* WIN32 */ atexit(exit_cleanup); diff --git a/scripts/Windows/wininit.c b/scripts/Windows/wininit.c index f305b3a955..6b4e36ef67 100644 --- a/scripts/Windows/wininit.c +++ b/scripts/Windows/wininit.c @@ -148,7 +148,7 @@ static DWORD run_drivers(void) char command[NUT_PATH_MAX]; char *path; - path = getfullpath(PATH_BIN); + path = getfullpath(PATH_SBIN); if (nut_debug_level < 1) { snprintf(command, sizeof(command), "%s\\upsdrvctl.exe start", path); } else {