Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
a3a12dff
Commit
a3a12dff
authored
Oct 05, 2006
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 06, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
powrprof: Win64 printf format warning fixes.
parent
6ef43211
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
Makefile.in
dlls/powrprof/Makefile.in
+0
-1
powrprof.c
dlls/powrprof/powrprof.c
+6
-6
No files found.
dlls/powrprof/Makefile.in
View file @
a3a12dff
...
@@ -5,7 +5,6 @@ VPATH = @srcdir@
...
@@ -5,7 +5,6 @@ VPATH = @srcdir@
MODULE
=
powrprof.dll
MODULE
=
powrprof.dll
IMPORTLIB
=
libpowrprof.
$(IMPLIBEXT)
IMPORTLIB
=
libpowrprof.
$(IMPLIBEXT)
IMPORTS
=
advapi32 kernel32 ntdll
IMPORTS
=
advapi32 kernel32 ntdll
EXTRADEFS
=
-DWINE_NO_LONG_AS_INT
C_SRCS
=
powrprof.c
C_SRCS
=
powrprof.c
...
...
dlls/powrprof/powrprof.c
View file @
a3a12dff
...
@@ -81,7 +81,7 @@ BOOLEAN WINAPI CanUserWritePwrScheme(VOID)
...
@@ -81,7 +81,7 @@ BOOLEAN WINAPI CanUserWritePwrScheme(VOID)
r
=
RegOpenKeyExW
(
HKEY_LOCAL_MACHINE
,
szPowerCfgSubKey
,
0
,
KEY_READ
|
KEY_WRITE
,
&
hKey
);
r
=
RegOpenKeyExW
(
HKEY_LOCAL_MACHINE
,
szPowerCfgSubKey
,
0
,
KEY_READ
|
KEY_WRITE
,
&
hKey
);
if
(
r
!=
ERROR_SUCCESS
)
{
if
(
r
!=
ERROR_SUCCESS
)
{
TRACE
(
"RegOpenKeyEx failed: %
l
d
\n
"
,
r
);
TRACE
(
"RegOpenKeyEx failed: %d
\n
"
,
r
);
bSuccess
=
FALSE
;
bSuccess
=
FALSE
;
}
}
...
@@ -164,7 +164,7 @@ BOOLEAN WINAPI GetPwrDiskSpindownRange(PUINT RangeMax, PUINT RangeMin)
...
@@ -164,7 +164,7 @@ BOOLEAN WINAPI GetPwrDiskSpindownRange(PUINT RangeMax, PUINT RangeMin)
r
=
RegOpenKeyExW
(
HKEY_LOCAL_MACHINE
,
szPowerCfgSubKey
,
0
,
KEY_READ
,
&
hKey
);
r
=
RegOpenKeyExW
(
HKEY_LOCAL_MACHINE
,
szPowerCfgSubKey
,
0
,
KEY_READ
,
&
hKey
);
if
(
r
!=
ERROR_SUCCESS
)
{
if
(
r
!=
ERROR_SUCCESS
)
{
TRACE
(
"RegOpenKeyEx failed: %
l
d
\n
"
,
r
);
TRACE
(
"RegOpenKeyEx failed: %d
\n
"
,
r
);
TRACE
(
"Using defaults: 3600, 3
\n
"
);
TRACE
(
"Using defaults: 3600, 3
\n
"
);
*
RangeMax
=
3600
;
*
RangeMax
=
3600
;
*
RangeMin
=
3
;
*
RangeMin
=
3
;
...
@@ -174,7 +174,7 @@ BOOLEAN WINAPI GetPwrDiskSpindownRange(PUINT RangeMax, PUINT RangeMin)
...
@@ -174,7 +174,7 @@ BOOLEAN WINAPI GetPwrDiskSpindownRange(PUINT RangeMax, PUINT RangeMin)
r
=
RegQueryValueExW
(
hKey
,
szDiskMax
,
0
,
0
,
lpValue
,
&
cbValue
);
r
=
RegQueryValueExW
(
hKey
,
szDiskMax
,
0
,
0
,
lpValue
,
&
cbValue
);
if
(
r
!=
ERROR_SUCCESS
)
{
if
(
r
!=
ERROR_SUCCESS
)
{
TRACE
(
"Couldn't open DiskSpinDownMax: %
l
d
\n
"
,
r
);
TRACE
(
"Couldn't open DiskSpinDownMax: %d
\n
"
,
r
);
TRACE
(
"Using default: 3600
\n
"
);
TRACE
(
"Using default: 3600
\n
"
);
*
RangeMax
=
3600
;
*
RangeMax
=
3600
;
}
else
{
}
else
{
...
@@ -185,7 +185,7 @@ BOOLEAN WINAPI GetPwrDiskSpindownRange(PUINT RangeMax, PUINT RangeMin)
...
@@ -185,7 +185,7 @@ BOOLEAN WINAPI GetPwrDiskSpindownRange(PUINT RangeMax, PUINT RangeMin)
r
=
RegQueryValueExW
(
hKey
,
szDiskMin
,
0
,
0
,
lpValue
,
&
cbValue
);
r
=
RegQueryValueExW
(
hKey
,
szDiskMin
,
0
,
0
,
lpValue
,
&
cbValue
);
if
(
r
!=
ERROR_SUCCESS
)
{
if
(
r
!=
ERROR_SUCCESS
)
{
TRACE
(
"Couldn't open DiskSpinDownMin: %
l
d
\n
"
,
r
);
TRACE
(
"Couldn't open DiskSpinDownMin: %d
\n
"
,
r
);
TRACE
(
"Using default: 3
\n
"
);
TRACE
(
"Using default: 3
\n
"
);
*
RangeMin
=
3
;
*
RangeMin
=
3
;
}
else
{
}
else
{
...
@@ -305,7 +305,7 @@ BOOLEAN WINAPI WritePwrScheme(PUINT puiID, LPWSTR lpszName, LPWSTR lpszDescripti
...
@@ -305,7 +305,7 @@ BOOLEAN WINAPI WritePwrScheme(PUINT puiID, LPWSTR lpszName, LPWSTR lpszDescripti
BOOL
WINAPI
DllMain
(
HINSTANCE
hinstDLL
,
DWORD
fdwReason
,
LPVOID
lpvReserved
)
BOOL
WINAPI
DllMain
(
HINSTANCE
hinstDLL
,
DWORD
fdwReason
,
LPVOID
lpvReserved
)
{
{
FIXME
(
"(%p, %
l
d, %p) not fully implemented
\n
"
,
hinstDLL
,
fdwReason
,
lpvReserved
);
FIXME
(
"(%p, %d, %p) not fully implemented
\n
"
,
hinstDLL
,
fdwReason
,
lpvReserved
);
switch
(
fdwReason
)
{
switch
(
fdwReason
)
{
case
DLL_PROCESS_ATTACH
:
{
case
DLL_PROCESS_ATTACH
:
{
...
@@ -331,7 +331,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
...
@@ -331,7 +331,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
PPRegSemaphore
=
CreateSemaphoreW
(
NULL
,
1
,
1
,
szSemaphoreName
);
PPRegSemaphore
=
CreateSemaphoreW
(
NULL
,
1
,
1
,
szSemaphoreName
);
if
(
PPRegSemaphore
==
NULL
)
{
if
(
PPRegSemaphore
==
NULL
)
{
ERR
(
"Couldn't create Semaphore: %
l
d
\n
"
,
GetLastError
());
ERR
(
"Couldn't create Semaphore: %d
\n
"
,
GetLastError
());
return
FALSE
;
return
FALSE
;
}
}
break
;
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