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
0f14b3a5
Commit
0f14b3a5
authored
Jul 18, 2007
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 19, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Don't produce unreachable code during conditional compilation. Found by Smatch.
parent
27853950
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
cdrom.c
dlls/ntdll/cdrom.c
+2
-1
serial.c
dlls/ntdll/serial.c
+4
-2
No files found.
dlls/ntdll/cdrom.c
View file @
0f14b3a5
...
@@ -1036,9 +1036,10 @@ static NTSTATUS CDROM_Verify(int dev, int fd)
...
@@ -1036,9 +1036,10 @@ static NTSTATUS CDROM_Verify(int dev, int fd)
return
STATUS_SUCCESS
;
return
STATUS_SUCCESS
;
else
else
return
STATUS_NO_MEDIA_IN_DEVICE
;
return
STATUS_NO_MEDIA_IN_DEVICE
;
#e
ndif
#e
lse
FIXME
(
"not implemented for non-linux
\n
"
);
FIXME
(
"not implemented for non-linux
\n
"
);
return
STATUS_NOT_SUPPORTED
;
return
STATUS_NOT_SUPPORTED
;
#endif
}
}
/******************************************************************
/******************************************************************
...
...
dlls/ntdll/serial.c
View file @
0f14b3a5
...
@@ -493,9 +493,10 @@ static NTSTATUS set_baud_rate(int fd, const SERIAL_BAUD_RATE* sbr)
...
@@ -493,9 +493,10 @@ static NTSTATUS set_baud_rate(int fd, const SERIAL_BAUD_RATE* sbr)
port
.
c_cflag
|=
B38400
;
port
.
c_cflag
|=
B38400
;
}
}
break
;
break
;
#e
ndif
/* Don't have linux/serial.h or lack TIOCSSERIAL */
#e
lse
/* Don't have linux/serial.h or lack TIOCSSERIAL */
ERR
(
"baudrate %d
\n
"
,
sbr
->
BaudRate
);
ERR
(
"baudrate %d
\n
"
,
sbr
->
BaudRate
);
return
STATUS_NOT_SUPPORTED
;
return
STATUS_NOT_SUPPORTED
;
#endif
/* Don't have linux/serial.h or lack TIOCSSERIAL */
}
}
#elif !defined(__EMX__)
#elif !defined(__EMX__)
switch
(
sbr
->
BaudRate
)
switch
(
sbr
->
BaudRate
)
...
@@ -911,9 +912,10 @@ static NTSTATUS get_irq_info(int fd, serial_irq_info *irq_info)
...
@@ -911,9 +912,10 @@ static NTSTATUS get_irq_info(int fd, serial_irq_info *irq_info)
}
}
TRACE
(
"TIOCGICOUNT err %s
\n
"
,
strerror
(
errno
));
TRACE
(
"TIOCGICOUNT err %s
\n
"
,
strerror
(
errno
));
return
FILE_GetNtStatus
();
return
FILE_GetNtStatus
();
#e
ndif
#e
lse
memset
(
irq_info
,
0
,
sizeof
(
serial_irq_info
));
memset
(
irq_info
,
0
,
sizeof
(
serial_irq_info
));
return
STATUS_NOT_IMPLEMENTED
;
return
STATUS_NOT_IMPLEMENTED
;
#endif
}
}
...
...
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