mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 12:20:07 +00:00
eject: Win64 printf format warning fixes.
This commit is contained in:
parent
c8123e9d49
commit
fe23cd26df
@ -5,7 +5,6 @@ VPATH = @srcdir@
|
||||
MODULE = eject.exe
|
||||
APPMODE = -mconsole
|
||||
IMPORTS = kernel32
|
||||
EXTRADEFS = -DWINE_NO_LONG_AS_INT
|
||||
|
||||
C_SRCS = 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 );
|
||||
|
Loading…
Reference in New Issue
Block a user