Commit 15eb79cc authored by Alexandre Julliard's avatar Alexandre Julliard

powrprof: Build with msvcrt.

parent 6a2d4277
...@@ -2,4 +2,6 @@ MODULE = powrprof.dll ...@@ -2,4 +2,6 @@ MODULE = powrprof.dll
IMPORTLIB = powrprof IMPORTLIB = powrprof
IMPORTS = advapi32 IMPORTS = advapi32
EXTRADLLFLAGS = -mno-cygwin
C_SRCS = powrprof.c C_SRCS = powrprof.c
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
#include <stdarg.h> #include <stdarg.h>
#include <stdlib.h>
#include "ntstatus.h" #include "ntstatus.h"
#define WIN32_NO_STATUS #define WIN32_NO_STATUS
...@@ -28,7 +29,6 @@ ...@@ -28,7 +29,6 @@
#include "winternl.h" #include "winternl.h"
#include "powrprof.h" #include "powrprof.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL(powrprof); WINE_DEFAULT_DEBUG_CHANNEL(powrprof);
...@@ -178,7 +178,7 @@ BOOLEAN WINAPI GetPwrDiskSpindownRange(PUINT RangeMax, PUINT RangeMin) ...@@ -178,7 +178,7 @@ BOOLEAN WINAPI GetPwrDiskSpindownRange(PUINT RangeMax, PUINT RangeMin)
TRACE("Using default: 3600\n"); TRACE("Using default: 3600\n");
*RangeMax = 3600; *RangeMax = 3600;
} else { } else {
*RangeMax = atoiW((LPCWSTR)lpValue); *RangeMax = wcstol((LPCWSTR)lpValue, NULL, 10);
} }
cbValue = sizeof(lpValue); cbValue = sizeof(lpValue);
...@@ -189,7 +189,7 @@ BOOLEAN WINAPI GetPwrDiskSpindownRange(PUINT RangeMax, PUINT RangeMin) ...@@ -189,7 +189,7 @@ BOOLEAN WINAPI GetPwrDiskSpindownRange(PUINT RangeMax, PUINT RangeMin)
TRACE("Using default: 3\n"); TRACE("Using default: 3\n");
*RangeMin = 3; *RangeMin = 3;
} else { } else {
*RangeMin = atoiW((LPCWSTR)lpValue); *RangeMin = wcstol((LPCWSTR)lpValue, NULL, 10);
} }
RegCloseKey(hKey); RegCloseKey(hKey);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment