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
26bba27d
Commit
26bba27d
authored
Oct 23, 2008
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Don't cast void pointers to other pointer types.
parent
a63749cc
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
9 deletions
+7
-9
debugbuffer.c
dlls/ntdll/debugbuffer.c
+1
-1
reg.c
dlls/ntdll/reg.c
+4
-6
rtlstr.c
dlls/ntdll/rtlstr.c
+1
-1
signal_i386.c
dlls/ntdll/signal_i386.c
+1
-1
No files found.
dlls/ntdll/debugbuffer.c
View file @
26bba27d
...
...
@@ -96,7 +96,7 @@ PDEBUG_BUFFER WINAPI RtlCreateQueryDebugBuffer(IN ULONG iSize, IN BOOLEAN iEvent
if
(
iSize
<
sizeof
(
DEBUG_BUFFER
))
{
iSize
=
sizeof
(
DEBUG_BUFFER
);
}
oBuf
=
(
PDEBUG_BUFFER
)
RtlAllocateHeap
(
GetProcessHeap
(),
0
,
iSize
);
oBuf
=
RtlAllocateHeap
(
GetProcessHeap
(),
0
,
iSize
);
memset
(
oBuf
,
0
,
iSize
);
FIXME
(
"(%d, %d): returning %p
\n
"
,
iSize
,
iEventPair
,
oBuf
);
return
oBuf
;
...
...
dlls/ntdll/reg.c
View file @
26bba27d
...
...
@@ -325,7 +325,7 @@ NTSTATUS WINAPI RtlpNtEnumerateSubKey( HANDLE handle, UNICODE_STRING *out, ULONG
if
(
out
->
Length
)
{
dwLen
=
out
->
Length
+
sizeof
(
KEY_BASIC_INFORMATION
);
info
=
(
KEY_BASIC_INFORMATION
*
)
RtlAllocateHeap
(
GetProcessHeap
(),
0
,
dwLen
);
info
=
RtlAllocateHeap
(
GetProcessHeap
(),
0
,
dwLen
);
if
(
!
info
)
return
STATUS_NO_MEMORY
;
}
...
...
@@ -543,7 +543,7 @@ NTSTATUS WINAPI RtlpNtQueryValueKey( HANDLE handle, ULONG *result_type, PBYTE de
DWORD
dwResultLen
;
DWORD
dwLen
=
sizeof
(
KEY_VALUE_PARTIAL_INFORMATION
)
+
(
result_len
?
*
result_len
:
0
);
info
=
(
KEY_VALUE_PARTIAL_INFORMATION
*
)
RtlAllocateHeap
(
GetProcessHeap
(),
0
,
dwLen
);
info
=
RtlAllocateHeap
(
GetProcessHeap
(),
0
,
dwLen
);
if
(
!
info
)
return
STATUS_NO_MEMORY
;
...
...
@@ -1220,8 +1220,7 @@ NTSTATUS WINAPI RtlQueryRegistryValues(IN ULONG RelativeTo, IN PCWSTR Path,
{
buflen
=
len
;
RtlFreeHeap
(
GetProcessHeap
(),
0
,
pInfo
);
pInfo
=
(
KEY_VALUE_FULL_INFORMATION
*
)
RtlAllocateHeap
(
GetProcessHeap
(),
0
,
buflen
);
pInfo
=
RtlAllocateHeap
(
GetProcessHeap
(),
0
,
buflen
);
NtEnumerateValueKey
(
handle
,
i
,
KeyValueFullInformation
,
pInfo
,
buflen
,
&
len
);
}
...
...
@@ -1255,8 +1254,7 @@ NTSTATUS WINAPI RtlQueryRegistryValues(IN ULONG RelativeTo, IN PCWSTR Path,
{
buflen
=
len
;
RtlFreeHeap
(
GetProcessHeap
(),
0
,
pInfo
);
pInfo
=
(
KEY_VALUE_FULL_INFORMATION
*
)
RtlAllocateHeap
(
GetProcessHeap
(),
0
,
buflen
);
pInfo
=
RtlAllocateHeap
(
GetProcessHeap
(),
0
,
buflen
);
status
=
NtQueryValueKey
(
handle
,
&
Value
,
KeyValueFullInformation
,
pInfo
,
buflen
,
&
len
);
}
...
...
dlls/ntdll/rtlstr.c
View file @
26bba27d
...
...
@@ -2126,7 +2126,7 @@ NTSTATUS WINAPI RtlStringFromGUID(const GUID* guid, UNICODE_STRING *str)
str
->
Length
=
GUID_STRING_LENGTH
*
sizeof
(
WCHAR
);
str
->
MaximumLength
=
str
->
Length
+
sizeof
(
WCHAR
);
str
->
Buffer
=
(
WCHAR
*
)
RtlAllocateHeap
(
GetProcessHeap
(),
0
,
str
->
MaximumLength
);
str
->
Buffer
=
RtlAllocateHeap
(
GetProcessHeap
(),
0
,
str
->
MaximumLength
);
if
(
!
str
->
Buffer
)
{
str
->
Length
=
str
->
MaximumLength
=
0
;
...
...
dlls/ntdll/signal_i386.c
View file @
26bba27d
...
...
@@ -599,7 +599,7 @@ static void wine_sigacthandler( int signal, siginfo_t *siginfo, void *sigcontext
__asm__
__volatile__
(
"mov %ss,%ax; mov %ax,%ds; mov %ax,%es"
);
thread_data
=
(
struct
ntdll_thread_data
*
)
get_current_teb
()
->
SystemReserved2
;
thread_data
=
get_current_teb
()
->
SystemReserved2
;
wine_set_fs
(
thread_data
->
fs
);
wine_set_gs
(
thread_data
->
gs
);
...
...
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