eject: Win64 printf format warning fixes.

This commit is contained in:
Michael Stefaniuc 2006-10-02 23:21:17 +02:00 committed by Alexandre Julliard
parent c8123e9d49
commit fe23cd26df
2 changed files with 3 additions and 4 deletions

View File

@ -5,7 +5,6 @@ VPATH = @srcdir@
MODULE = eject.exe
APPMODE = -mconsole
IMPORTS = kernel32
EXTRADEFS = -DWINE_NO_LONG_AS_INT
C_SRCS = eject.c

View File

@ -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 );