eject: Win64 printf format warning fixes.
Michael Stefaniuc
mstefani at redhat.de
Mon Oct 2 16:21:17 CDT 2006
---
programs/eject/Makefile.in | 1 -
programs/eject/eject.c | 6 +++---
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/programs/eject/Makefile.in b/programs/eject/Makefile.in
index a0ea47c..d4f1b00 100644
--- a/programs/eject/Makefile.in
+++ b/programs/eject/Makefile.in
@@ -5,7 +5,6 @@ VPATH = @srcdir@
MODULE = eject.exe
APPMODE = -mconsole
IMPORTS = kernel32
-EXTRADEFS = -DWINE_NO_LONG_AS_INT
C_SRCS = eject.c
diff --git a/programs/eject/eject.c b/programs/eject/eject.c
index cd5fd42..02ff4ba 100644
--- a/programs/eject/eject.c
+++ b/programs/eject/eject.c
@@ -74,16 +74,16 @@ static BOOL eject_cd( WCHAR drive )
WINE_TRACE( "ejecting %c:\n", (char)drive );
if (!DeviceIoControl( handle, FSCTL_DISMOUNT_VOLUME, NULL, 0, NULL, 0, &result, NULL ))
- WINE_WARN( "FSCTL_DISMOUNT_VOLUME failed with err %ld\n", GetLastError() );
+ WINE_WARN( "FSCTL_DISMOUNT_VOLUME failed with err %d\n", GetLastError() );
removal.PreventMediaRemoval = FALSE;
if (!DeviceIoControl( handle, IOCTL_STORAGE_MEDIA_REMOVAL, &removal, sizeof(removal), NULL, 0, &result, NULL ))
- WINE_WARN( "IOCTL_STORAGE_MEDIA_REMOVAL failed with err %ld\n", GetLastError() );
+ WINE_WARN( "IOCTL_STORAGE_MEDIA_REMOVAL failed with err %d\n", GetLastError() );
if (!unmount_only)
{
if (!DeviceIoControl( handle, IOCTL_STORAGE_EJECT_MEDIA, NULL, 0, NULL, 0, &result, NULL ))
- WINE_WARN( "IOCTL_STORAGE_EJECT_MEDIA failed with err %ld\n", GetLastError() );
+ WINE_WARN( "IOCTL_STORAGE_EJECT_MEDIA failed with err %d\n", GetLastError() );
}
CloseHandle( handle );
--
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/20061002/4ca27935/attachment.pgp
More information about the wine-patches
mailing list