powrprof: Win64 printf format warning fixes.

Michael Stefaniuc mstefani at redhat.de
Thu Oct 5 15:05:43 CDT 2006


---
 dlls/powrprof/Makefile.in |    1 -
 dlls/powrprof/powrprof.c  |   12 ++++++------
 2 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/dlls/powrprof/Makefile.in b/dlls/powrprof/Makefile.in
index 3a861b2..76fd679 100644
--- a/dlls/powrprof/Makefile.in
+++ b/dlls/powrprof/Makefile.in
@@ -5,7 +5,6 @@ VPATH     = @srcdir@
 MODULE    = powrprof.dll
 IMPORTLIB = libpowrprof.$(IMPLIBEXT)
 IMPORTS   = advapi32 kernel32 ntdll
-EXTRADEFS = -DWINE_NO_LONG_AS_INT
 
 C_SRCS = powrprof.c
 
diff --git a/dlls/powrprof/powrprof.c b/dlls/powrprof/powrprof.c
index 6005bee..e17acc9 100644
--- a/dlls/powrprof/powrprof.c
+++ b/dlls/powrprof/powrprof.c
@@ -81,7 +81,7 @@ BOOLEAN WINAPI CanUserWritePwrScheme(VOI
    r = RegOpenKeyExW(HKEY_LOCAL_MACHINE, szPowerCfgSubKey, 0, KEY_READ | KEY_WRITE, &hKey);
 
    if (r != ERROR_SUCCESS) {
-      TRACE("RegOpenKeyEx failed: %ld\n", r);
+      TRACE("RegOpenKeyEx failed: %d\n", r);
       bSuccess = FALSE;
    }
 
@@ -164,7 +164,7 @@ BOOLEAN WINAPI GetPwrDiskSpindownRange(P
 
    r = RegOpenKeyExW(HKEY_LOCAL_MACHINE, szPowerCfgSubKey, 0, KEY_READ, &hKey);
    if (r != ERROR_SUCCESS) {
-      TRACE("RegOpenKeyEx failed: %ld\n", r);
+      TRACE("RegOpenKeyEx failed: %d\n", r);
       TRACE("Using defaults: 3600, 3\n");
       *RangeMax = 3600;
       *RangeMin = 3;
@@ -174,7 +174,7 @@ BOOLEAN WINAPI GetPwrDiskSpindownRange(P
 
    r = RegQueryValueExW(hKey, szDiskMax, 0, 0, lpValue, &cbValue);
    if (r != ERROR_SUCCESS) {
-      TRACE("Couldn't open DiskSpinDownMax: %ld\n", r);
+      TRACE("Couldn't open DiskSpinDownMax: %d\n", r);
       TRACE("Using default: 3600\n");
       *RangeMax = 3600;
    } else {
@@ -185,7 +185,7 @@ BOOLEAN WINAPI GetPwrDiskSpindownRange(P
 
    r = RegQueryValueExW(hKey, szDiskMin, 0, 0, lpValue, &cbValue);
    if (r != ERROR_SUCCESS) {
-      TRACE("Couldn't open DiskSpinDownMin: %ld\n", r);
+      TRACE("Couldn't open DiskSpinDownMin: %d\n", r);
       TRACE("Using default: 3\n");
       *RangeMin = 3;
    } else {
@@ -305,7 +305,7 @@ BOOLEAN WINAPI WritePwrScheme(PUINT puiI
 
 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
 {
-   FIXME("(%p, %ld, %p) not fully implemented\n", hinstDLL, fdwReason, lpvReserved);
+   FIXME("(%p, %d, %p) not fully implemented\n", hinstDLL, fdwReason, lpvReserved);
 
    switch(fdwReason) {
       case DLL_PROCESS_ATTACH: {
@@ -331,7 +331,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, 
 
          PPRegSemaphore = CreateSemaphoreW(NULL, 1, 1, szSemaphoreName);
          if (PPRegSemaphore == NULL) {
-            ERR("Couldn't create Semaphore: %ld\n", GetLastError());
+            ERR("Couldn't create Semaphore: %d\n", GetLastError());
             return FALSE;
          }
          break;
-- 
1.4.2.1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20061005/8b56124e/attachment.pgp


More information about the wine-patches mailing list