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

powrprof: Build with msvcrt.

parent 6a2d4277
......@@ -2,4 +2,6 @@ MODULE = powrprof.dll
IMPORTLIB = powrprof
IMPORTS = advapi32
EXTRADLLFLAGS = -mno-cygwin
C_SRCS = powrprof.c
......@@ -18,6 +18,7 @@
#include <stdarg.h>
#include <stdlib.h>
#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);
......
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