diff --git a/dlls/powrprof/Makefile.in b/dlls/powrprof/Makefile.in index e51fc62e7c0..a410e9ba799 100644 --- a/dlls/powrprof/Makefile.in +++ b/dlls/powrprof/Makefile.in @@ -2,4 +2,6 @@ MODULE = powrprof.dll IMPORTLIB = powrprof IMPORTS = advapi32 +EXTRADLLFLAGS = -mno-cygwin + C_SRCS = powrprof.c diff --git a/dlls/powrprof/powrprof.c b/dlls/powrprof/powrprof.c index d870fe2ebd0..92bab0397c7 100644 --- a/dlls/powrprof/powrprof.c +++ b/dlls/powrprof/powrprof.c @@ -18,6 +18,7 @@ #include +#include #include "ntstatus.h" #define WIN32_NO_STATUS @@ -28,7 +29,6 @@ #include "winternl.h" #include "powrprof.h" #include "wine/debug.h" -#include "wine/unicode.h" WINE_DEFAULT_DEBUG_CHANNEL(powrprof); @@ -178,7 +178,7 @@ BOOLEAN WINAPI GetPwrDiskSpindownRange(PUINT RangeMax, PUINT RangeMin) TRACE("Using default: 3600\n"); *RangeMax = 3600; } else { - *RangeMax = atoiW((LPCWSTR)lpValue); + *RangeMax = wcstol((LPCWSTR)lpValue, NULL, 10); } cbValue = sizeof(lpValue); @@ -189,7 +189,7 @@ BOOLEAN WINAPI GetPwrDiskSpindownRange(PUINT RangeMax, PUINT RangeMin) TRACE("Using default: 3\n"); *RangeMin = 3; } else { - *RangeMin = atoiW((LPCWSTR)lpValue); + *RangeMin = wcstol((LPCWSTR)lpValue, NULL, 10); } RegCloseKey(hKey);