Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
ed875d65
Commit
ed875d65
authored
Feb 04, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 04, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eject: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a7f8adb5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
Makefile.in
programs/eject/Makefile.in
+0
-1
eject.c
programs/eject/eject.c
+3
-3
No files found.
programs/eject/Makefile.in
View file @
ed875d65
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
MODULE
=
eject.exe
MODULE
=
eject.exe
EXTRADLLFLAGS
=
-mconsole
EXTRADLLFLAGS
=
-mconsole
...
...
programs/eject/eject.c
View file @
ed875d65
...
@@ -70,16 +70,16 @@ static BOOL eject_cd( WCHAR drive )
...
@@ -70,16 +70,16 @@ static BOOL eject_cd( WCHAR drive )
WINE_TRACE
(
"ejecting %c:
\n
"
,
(
char
)
drive
);
WINE_TRACE
(
"ejecting %c:
\n
"
,
(
char
)
drive
);
if
(
!
DeviceIoControl
(
handle
,
FSCTL_DISMOUNT_VOLUME
,
NULL
,
0
,
NULL
,
0
,
&
result
,
NULL
))
if
(
!
DeviceIoControl
(
handle
,
FSCTL_DISMOUNT_VOLUME
,
NULL
,
0
,
NULL
,
0
,
&
result
,
NULL
))
WINE_WARN
(
"FSCTL_DISMOUNT_VOLUME failed with err %d
\n
"
,
GetLastError
()
);
WINE_WARN
(
"FSCTL_DISMOUNT_VOLUME failed with err %
l
d
\n
"
,
GetLastError
()
);
removal
.
PreventMediaRemoval
=
FALSE
;
removal
.
PreventMediaRemoval
=
FALSE
;
if
(
!
DeviceIoControl
(
handle
,
IOCTL_STORAGE_MEDIA_REMOVAL
,
&
removal
,
sizeof
(
removal
),
NULL
,
0
,
&
result
,
NULL
))
if
(
!
DeviceIoControl
(
handle
,
IOCTL_STORAGE_MEDIA_REMOVAL
,
&
removal
,
sizeof
(
removal
),
NULL
,
0
,
&
result
,
NULL
))
WINE_WARN
(
"IOCTL_STORAGE_MEDIA_REMOVAL failed with err %d
\n
"
,
GetLastError
()
);
WINE_WARN
(
"IOCTL_STORAGE_MEDIA_REMOVAL failed with err %
l
d
\n
"
,
GetLastError
()
);
if
(
!
unmount_only
)
if
(
!
unmount_only
)
{
{
if
(
!
DeviceIoControl
(
handle
,
IOCTL_STORAGE_EJECT_MEDIA
,
NULL
,
0
,
NULL
,
0
,
&
result
,
NULL
))
if
(
!
DeviceIoControl
(
handle
,
IOCTL_STORAGE_EJECT_MEDIA
,
NULL
,
0
,
NULL
,
0
,
&
result
,
NULL
))
WINE_WARN
(
"IOCTL_STORAGE_EJECT_MEDIA failed with err %d
\n
"
,
GetLastError
()
);
WINE_WARN
(
"IOCTL_STORAGE_EJECT_MEDIA failed with err %
l
d
\n
"
,
GetLastError
()
);
}
}
CloseHandle
(
handle
);
CloseHandle
(
handle
);
...
...
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