Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
15eb79cc
Commit
15eb79cc
authored
Jun 18, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
powrprof: Build with msvcrt.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6a2d4277
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
Makefile.in
dlls/powrprof/Makefile.in
+2
-0
powrprof.c
dlls/powrprof/powrprof.c
+3
-3
No files found.
dlls/powrprof/Makefile.in
View file @
15eb79cc
...
...
@@ -2,4 +2,6 @@ MODULE = powrprof.dll
IMPORTLIB
=
powrprof
IMPORTS
=
advapi32
EXTRADLLFLAGS
=
-mno-cygwin
C_SRCS
=
powrprof.c
dlls/powrprof/powrprof.c
View file @
15eb79cc
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment