Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
664349ea
Commit
664349ea
authored
Apr 22, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Apr 23, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Remove unused variables.
parent
ba742868
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
13 deletions
+3
-13
cdrom.c
dlls/ntdll/cdrom.c
+0
-8
loadorder.c
dlls/ntdll/loadorder.c
+2
-3
path.c
dlls/ntdll/path.c
+1
-2
No files found.
dlls/ntdll/cdrom.c
View file @
664349ea
...
...
@@ -815,7 +815,6 @@ static NTSTATUS CDROM_ReadQChannel(int dev, int fd, const CDROM_SUB_Q_DATA_FORMA
{
NTSTATUS
ret
=
STATUS_NOT_SUPPORTED
;
#ifdef linux
unsigned
size
;
SUB_Q_HEADER
*
hdr
=
(
SUB_Q_HEADER
*
)
data
;
int
io
;
struct
cdrom_subchnl
sc
;
...
...
@@ -860,7 +859,6 @@ static NTSTATUS CDROM_ReadQChannel(int dev, int fd, const CDROM_SUB_Q_DATA_FORMA
switch
(
fmt
->
Format
)
{
case
IOCTL_CDROM_CURRENT_POSITION
:
size
=
sizeof
(
SUB_Q_CURRENT_POSITION
);
RtlEnterCriticalSection
(
&
cache_section
);
if
(
hdr
->
AudioStatus
==
AUDIO_STATUS_IN_PROGRESS
)
{
data
->
CurrentPosition
.
FormatCode
=
IOCTL_CDROM_CURRENT_POSITION
;
...
...
@@ -889,7 +887,6 @@ static NTSTATUS CDROM_ReadQChannel(int dev, int fd, const CDROM_SUB_Q_DATA_FORMA
RtlLeaveCriticalSection
(
&
cache_section
);
break
;
case
IOCTL_CDROM_MEDIA_CATALOG
:
size
=
sizeof
(
SUB_Q_MEDIA_CATALOG_NUMBER
);
data
->
MediaCatalog
.
FormatCode
=
IOCTL_CDROM_MEDIA_CATALOG
;
{
struct
cdrom_mcn
mcn
;
...
...
@@ -902,7 +899,6 @@ static NTSTATUS CDROM_ReadQChannel(int dev, int fd, const CDROM_SUB_Q_DATA_FORMA
}
break
;
case
IOCTL_CDROM_TRACK_ISRC
:
size
=
sizeof
(
SUB_Q_CURRENT_POSITION
);
FIXME
(
"TrackIsrc: NIY on linux
\n
"
);
data
->
TrackIsrc
.
FormatCode
=
IOCTL_CDROM_TRACK_ISRC
;
data
->
TrackIsrc
.
Tcval
=
0
;
...
...
@@ -913,7 +909,6 @@ static NTSTATUS CDROM_ReadQChannel(int dev, int fd, const CDROM_SUB_Q_DATA_FORMA
end:
ret
=
CDROM_GetStatusCode
(
io
);
#elif defined(__FreeBSD__) || defined(__NetBSD__)
unsigned
size
;
SUB_Q_HEADER
*
hdr
=
(
SUB_Q_HEADER
*
)
data
;
int
io
;
struct
ioc_read_subchannel
read_sc
;
...
...
@@ -974,7 +969,6 @@ static NTSTATUS CDROM_ReadQChannel(int dev, int fd, const CDROM_SUB_Q_DATA_FORMA
switch
(
fmt
->
Format
)
{
case
IOCTL_CDROM_CURRENT_POSITION
:
size
=
sizeof
(
SUB_Q_CURRENT_POSITION
);
RtlEnterCriticalSection
(
&
cache_section
);
if
(
hdr
->
AudioStatus
==
AUDIO_STATUS_IN_PROGRESS
)
{
data
->
CurrentPosition
.
FormatCode
=
IOCTL_CDROM_CURRENT_POSITION
;
...
...
@@ -1000,13 +994,11 @@ static NTSTATUS CDROM_ReadQChannel(int dev, int fd, const CDROM_SUB_Q_DATA_FORMA
RtlLeaveCriticalSection
(
&
cache_section
);
break
;
case
IOCTL_CDROM_MEDIA_CATALOG
:
size
=
sizeof
(
SUB_Q_MEDIA_CATALOG_NUMBER
);
data
->
MediaCatalog
.
FormatCode
=
IOCTL_CDROM_MEDIA_CATALOG
;
data
->
MediaCatalog
.
Mcval
=
sc
.
what
.
media_catalog
.
mc_valid
;
memcpy
(
data
->
MediaCatalog
.
MediaCatalog
,
sc
.
what
.
media_catalog
.
mc_number
,
15
);
break
;
case
IOCTL_CDROM_TRACK_ISRC
:
size
=
sizeof
(
SUB_Q_CURRENT_POSITION
);
data
->
TrackIsrc
.
FormatCode
=
IOCTL_CDROM_TRACK_ISRC
;
data
->
TrackIsrc
.
Tcval
=
sc
.
what
.
track_info
.
ti_valid
;
memcpy
(
data
->
TrackIsrc
.
TrackIsrc
,
sc
.
what
.
track_info
.
ti_number
,
15
);
...
...
dlls/ntdll/loadorder.c
View file @
664349ea
...
...
@@ -376,12 +376,11 @@ static enum loadorder get_registry_value( HANDLE hkey, const WCHAR *module )
UNICODE_STRING
valueW
;
char
buffer
[
80
];
DWORD
count
;
BOOL
ret
;
RtlInitUnicodeString
(
&
valueW
,
module
);
if
(
(
ret
=
!
NtQueryValueKey
(
hkey
,
&
valueW
,
KeyValuePartialInformation
,
buffer
,
sizeof
(
buffer
),
&
count
))
)
if
(
!
NtQueryValueKey
(
hkey
,
&
valueW
,
KeyValuePartialInformation
,
buffer
,
sizeof
(
buffer
),
&
count
))
{
WCHAR
*
str
=
(
WCHAR
*
)((
KEY_VALUE_PARTIAL_INFORMATION
*
)
buffer
)
->
Data
;
return
parse_load_order
(
str
);
...
...
dlls/ntdll/path.c
View file @
664349ea
...
...
@@ -596,7 +596,6 @@ static const WCHAR *skip_unc_prefix( const WCHAR *ptr )
static
ULONG
get_full_path_helper
(
LPCWSTR
name
,
LPWSTR
buffer
,
ULONG
size
)
{
ULONG
reqsize
=
0
,
mark
=
0
,
dep
=
0
,
deplen
;
DOS_PATHNAME_TYPE
type
;
LPWSTR
ins_str
=
NULL
;
LPCWSTR
ptr
;
const
UNICODE_STRING
*
cd
;
...
...
@@ -613,7 +612,7 @@ static ULONG get_full_path_helper(LPCWSTR name, LPWSTR buffer, ULONG size)
else
cd
=
&
NtCurrentTeb
()
->
Peb
->
ProcessParameters
->
CurrentDirectory
.
DosPath
;
switch
(
type
=
RtlDetermineDosPathNameType_U
(
name
))
switch
(
RtlDetermineDosPathNameType_U
(
name
))
{
case
UNC_PATH
:
/* \\foo */
ptr
=
skip_unc_prefix
(
name
);
...
...
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