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
48f3bacb
Commit
48f3bacb
authored
Dec 29, 2015
by
Alex Henrie
Committed by
Alexandre Julliard
Jan 22, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Avoid double initialization.
Signed-off-by:
Alex Henrie
<
alexhenrie24@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2841e180
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
12 deletions
+14
-12
cdrom.c
dlls/ntdll/cdrom.c
+6
-6
debugbuffer.c
dlls/ntdll/debugbuffer.c
+1
-1
directory.c
dlls/ntdll/directory.c
+1
-1
loader.c
dlls/ntdll/loader.c
+1
-1
reg.c
dlls/ntdll/reg.c
+1
-1
thread.c
dlls/ntdll/thread.c
+4
-2
No files found.
dlls/ntdll/cdrom.c
View file @
48f3bacb
...
...
@@ -748,8 +748,8 @@ static NTSTATUS CDROM_GetDeviceNumber(int dev, STORAGE_DEVICE_NUMBER* devnum)
static
NTSTATUS
CDROM_GetDriveGeometry
(
int
dev
,
int
fd
,
DISK_GEOMETRY
*
dg
)
{
CDROM_TOC
toc
;
NTSTATUS
ret
=
0
;
int
fsize
=
0
;
NTSTATUS
ret
;
int
fsize
;
if
((
ret
=
CDROM_ReadTOC
(
dev
,
fd
,
&
toc
))
!=
0
)
return
ret
;
...
...
@@ -2432,7 +2432,7 @@ static NTSTATUS DVD_ReadKey(int fd, PDVD_COPY_PROTECT_KEY key)
static
NTSTATUS
DVD_GetRegion
(
int
fd
,
PDVD_REGION
region
)
{
#if defined(linux)
NTSTATUS
ret
=
STATUS_NOT_SUPPORTED
;
NTSTATUS
ret
;
dvd_struct
dvd
;
dvd_authinfo
auth_info
;
...
...
@@ -2460,7 +2460,7 @@ static NTSTATUS DVD_GetRegion(int fd, PDVD_REGION region)
dk_dvd_read_structure_t
dvd
;
DVDRegionPlaybackControlInfo
rpc
;
DVDCopyrightInfo
copy
;
NTSTATUS
ret
=
STATUS_NOT_SUPPORTED
;
NTSTATUS
ret
;
key
.
format
=
kDVDKeyFormatRegionState
;
key
.
keyClass
=
kDVDKeyClassCSS_CPPM_CPRM
;
...
...
@@ -2636,7 +2636,7 @@ static NTSTATUS DVD_ReadStructure(int dev, const DVD_READ_STRUCTURE *structure,
break
;
}
#elif defined(__APPLE__)
NTSTATUS
ret
=
STATUS_NOT_SUPPORTED
;
NTSTATUS
ret
;
dk_dvd_read_structure_t
dvdrs
;
union
{
...
...
@@ -2771,7 +2771,7 @@ static NTSTATUS DVD_ReadStructure(int dev, const DVD_READ_STRUCTURE *structure,
static
NTSTATUS
GetInquiryData
(
int
fd
,
PSCSI_ADAPTER_BUS_INFO
BufferOut
,
DWORD
OutBufferSize
)
{
#ifdef HAVE_SG_IO_HDR_T_INTERFACE_ID
PSCSI_INQUIRY_DATA
pInquiryData
=
NULL
;
PSCSI_INQUIRY_DATA
pInquiryData
;
UCHAR
sense_buffer
[
32
];
int
iochk
,
version
;
sg_io_hdr_t
iocmd
;
...
...
dlls/ntdll/debugbuffer.c
View file @
48f3bacb
...
...
@@ -91,7 +91,7 @@ static void dump_DEBUG_BUFFER(const DEBUG_BUFFER *iBuf)
PDEBUG_BUFFER
WINAPI
RtlCreateQueryDebugBuffer
(
IN
ULONG
iSize
,
IN
BOOLEAN
iEventPair
)
{
PDEBUG_BUFFER
oBuf
=
NULL
;
PDEBUG_BUFFER
oBuf
;
FIXME
(
"(%d, %d): stub
\n
"
,
iSize
,
iEventPair
);
if
(
iSize
<
sizeof
(
DEBUG_BUFFER
))
{
iSize
=
sizeof
(
DEBUG_BUFFER
);
...
...
dlls/ntdll/directory.c
View file @
48f3bacb
...
...
@@ -993,7 +993,7 @@ static void add_fs_cache( dev_t dev, fsid_t fsid, BOOLEAN case_sensitive )
*/
static
int
get_dir_case_sensitivity_attr
(
const
char
*
dir
)
{
char
*
mntpoint
=
NULL
;
char
*
mntpoint
;
struct
attrlist
attr
;
struct
vol_caps
caps
;
struct
get_fsid
get_fsid
;
...
...
dlls/ntdll/loader.c
View file @
48f3bacb
...
...
@@ -1865,7 +1865,7 @@ static NTSTATUS load_builtin_dll( LPCWSTR load_path, LPCWSTR path, HANDLE file,
char
error
[
256
],
dllname
[
MAX_PATH
];
const
WCHAR
*
name
,
*
p
;
DWORD
len
,
i
;
void
*
handle
=
NULL
;
void
*
handle
;
struct
builtin_load_info
info
,
*
prev_info
;
/* Fix the name in case we have a full path and extension */
...
...
dlls/ntdll/reg.c
View file @
48f3bacb
...
...
@@ -532,7 +532,7 @@ NTSTATUS WINAPI NtQueryValueKey( HANDLE handle, const UNICODE_STRING *name,
{
NTSTATUS
ret
;
UCHAR
*
data_ptr
;
unsigned
int
fixed_size
=
0
,
min_size
=
0
;
unsigned
int
fixed_size
,
min_size
;
TRACE
(
"(%p,%s,%d,%p,%d)
\n
"
,
handle
,
debugstr_us
(
name
),
info_class
,
info
,
length
);
...
...
dlls/ntdll/thread.c
View file @
48f3bacb
...
...
@@ -463,7 +463,7 @@ NTSTATUS WINAPI RtlCreateUserThread( HANDLE process, const SECURITY_DESCRIPTOR *
pthread_t
pthread_id
;
pthread_attr_t
attr
;
struct
ntdll_thread_data
*
thread_data
;
struct
startup_info
*
info
=
NULL
;
struct
startup_info
*
info
;
HANDLE
handle
=
0
,
actctx
=
0
;
TEB
*
teb
=
NULL
;
DWORD
tid
=
0
;
...
...
@@ -732,7 +732,7 @@ NTSTATUS WINAPI NtSetContextThread( HANDLE handle, const CONTEXT *context )
{
NTSTATUS
ret
;
DWORD
dummy
,
i
;
BOOL
self
=
FALSE
;
BOOL
self
;
#ifdef __i386__
/* on i386 debug registers always require a server call */
...
...
@@ -746,6 +746,8 @@ NTSTATUS WINAPI NtSetContextThread( HANDLE handle, const CONTEXT *context )
ntdll_get_thread_data
()
->
dr6
==
context
->
Dr6
&&
ntdll_get_thread_data
()
->
dr7
==
context
->
Dr7
);
}
#else
self
=
FALSE
;
#endif
if
(
!
self
)
...
...
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