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
790b0940
Commit
790b0940
authored
Feb 17, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
powrprof: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7ad38e3b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
10 deletions
+9
-10
Makefile.in
dlls/powrprof/Makefile.in
+0
-1
powrprof.c
dlls/powrprof/powrprof.c
+9
-9
No files found.
dlls/powrprof/Makefile.in
View file @
790b0940
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
MODULE
=
powrprof.dll
IMPORTLIB
=
powrprof
IMPORTS
=
advapi32
...
...
dlls/powrprof/powrprof.c
View file @
790b0940
...
...
@@ -68,7 +68,7 @@ BOOLEAN WINAPI CanUserWritePwrScheme(VOID)
r
=
RegOpenKeyExW
(
HKEY_LOCAL_MACHINE
,
szPowerCfgSubKey
,
0
,
KEY_READ
|
KEY_WRITE
,
&
hKey
);
if
(
r
!=
ERROR_SUCCESS
)
{
TRACE
(
"RegOpenKeyEx failed: %d
\n
"
,
r
);
TRACE
(
"RegOpenKeyEx failed: %
l
d
\n
"
,
r
);
bSuccess
=
FALSE
;
}
...
...
@@ -89,7 +89,7 @@ BOOLEAN WINAPI EnumPwrSchemes(PWRSCHEMESENUMPROC lpfnPwrSchemesEnumProc,
LPARAM
lParam
)
{
/* FIXME: See note #1 */
FIXME
(
"(%p, %
l
d) stub!
\n
"
,
lpfnPwrSchemesEnumProc
,
lParam
);
FIXME
(
"(%p, %
I
d) stub!
\n
"
,
lpfnPwrSchemesEnumProc
,
lParam
);
SetLastError
(
ERROR_FILE_NOT_FOUND
);
return
FALSE
;
}
...
...
@@ -151,7 +151,7 @@ BOOLEAN WINAPI GetPwrDiskSpindownRange(PUINT RangeMax, PUINT RangeMin)
r
=
RegOpenKeyExW
(
HKEY_LOCAL_MACHINE
,
szPowerCfgSubKey
,
0
,
KEY_READ
,
&
hKey
);
if
(
r
!=
ERROR_SUCCESS
)
{
TRACE
(
"RegOpenKeyEx failed: %d
\n
"
,
r
);
TRACE
(
"RegOpenKeyEx failed: %
l
d
\n
"
,
r
);
TRACE
(
"Using defaults: 3600, 3
\n
"
);
*
RangeMax
=
3600
;
*
RangeMin
=
3
;
...
...
@@ -161,7 +161,7 @@ BOOLEAN WINAPI GetPwrDiskSpindownRange(PUINT RangeMax, PUINT RangeMin)
r
=
RegQueryValueExW
(
hKey
,
L"DiskSpindownMax"
,
0
,
0
,
lpValue
,
&
cbValue
);
if
(
r
!=
ERROR_SUCCESS
)
{
TRACE
(
"Couldn't open DiskSpinDownMax: %d
\n
"
,
r
);
TRACE
(
"Couldn't open DiskSpinDownMax: %
l
d
\n
"
,
r
);
TRACE
(
"Using default: 3600
\n
"
);
*
RangeMax
=
3600
;
}
else
{
...
...
@@ -172,7 +172,7 @@ BOOLEAN WINAPI GetPwrDiskSpindownRange(PUINT RangeMax, PUINT RangeMin)
r
=
RegQueryValueExW
(
hKey
,
L"DiskSpindownMin"
,
0
,
0
,
lpValue
,
&
cbValue
);
if
(
r
!=
ERROR_SUCCESS
)
{
TRACE
(
"Couldn't open DiskSpinDownMin: %d
\n
"
,
r
);
TRACE
(
"Couldn't open DiskSpinDownMin: %
l
d
\n
"
,
r
);
TRACE
(
"Using default: 3
\n
"
);
*
RangeMin
=
3
;
}
else
{
...
...
@@ -318,21 +318,21 @@ POWER_PLATFORM_ROLE WINAPI PowerDeterminePlatformRole(void)
POWER_PLATFORM_ROLE
WINAPI
PowerDeterminePlatformRoleEx
(
ULONG
version
)
{
FIXME
(
"%u stub.
\n
"
,
version
);
FIXME
(
"%
l
u stub.
\n
"
,
version
);
return
PlatformRoleDesktop
;
}
DWORD
WINAPI
PowerEnumerate
(
HKEY
key
,
const
GUID
*
scheme
,
const
GUID
*
subgroup
,
POWER_DATA_ACCESSOR
flags
,
ULONG
index
,
UCHAR
*
buffer
,
DWORD
*
buffer_size
)
{
FIXME
(
"(%p,%s,%s,%d,%d,%p,%p) stub!
\n
"
,
key
,
debugstr_guid
(
scheme
),
debugstr_guid
(
subgroup
),
FIXME
(
"(%p,%s,%s,%d,%
l
d,%p,%p) stub!
\n
"
,
key
,
debugstr_guid
(
scheme
),
debugstr_guid
(
subgroup
),
flags
,
index
,
buffer
,
buffer_size
);
return
ERROR_CALL_NOT_IMPLEMENTED
;
}
DWORD
WINAPI
PowerRegisterSuspendResumeNotification
(
DWORD
flags
,
HANDLE
recipient
,
PHPOWERNOTIFY
handle
)
{
FIXME
(
"(0x%08x,%p,%p) stub!
\n
"
,
flags
,
recipient
,
handle
);
FIXME
(
"(0x%08
l
x,%p,%p) stub!
\n
"
,
flags
,
recipient
,
handle
);
return
ERROR_SUCCESS
;
}
...
...
@@ -362,7 +362,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
PPRegSemaphore
=
CreateSemaphoreW
(
NULL
,
1
,
1
,
L"PowerProfileRegistrySemaphore"
);
if
(
PPRegSemaphore
==
NULL
)
{
ERR
(
"Couldn't create Semaphore: %d
\n
"
,
GetLastError
());
ERR
(
"Couldn't create Semaphore: %
l
d
\n
"
,
GetLastError
());
return
FALSE
;
}
break
;
...
...
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