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
ca6003b8
Commit
ca6003b8
authored
Dec 20, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Dec 21, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Remove unneeded casts.
parent
3fa10f79
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
thunk.c
dlls/kernel32/thunk.c
+5
-5
toolhelp.c
dlls/kernel32/toolhelp.c
+1
-1
No files found.
dlls/kernel32/thunk.c
View file @
ca6003b8
...
...
@@ -709,7 +709,7 @@ DWORD WINAPI ThunkInitLS(
if
(
!
addr
[
1
])
return
0
;
*
(
DWORD
*
)
thunk
=
addr
[
1
];
*
thunk
=
addr
[
1
];
return
addr
[
1
];
}
...
...
@@ -1645,7 +1645,7 @@ static BOOL THUNK_Init(void)
ThunkletHeap
=
HeapCreate
(
0
,
0x10000
,
0x10000
);
if
(
!
ThunkletHeap
)
return
FALSE
;
ThunkletCodeSel
=
SELECTOR_AllocBlock
(
(
void
*
)
ThunkletHeap
,
0x10000
,
WINE_LDT_FLAGS_CODE
);
ThunkletCodeSel
=
SELECTOR_AllocBlock
(
ThunkletHeap
,
0x10000
,
WINE_LDT_FLAGS_CODE
);
thunk
=
HeapAlloc
(
ThunkletHeap
,
0
,
5
);
if
(
!
thunk
)
return
FALSE
;
...
...
@@ -1712,7 +1712,7 @@ static FARPROC THUNK_AllocLSThunklet( SEGPTR target, DWORD relay,
thunk
->
jmp_glue
=
0xE9
;
thunk
->
target
=
(
DWORD
)
target
;
thunk
->
relay
=
(
DWORD
)
relay
;
thunk
->
relay
=
relay
;
thunk
->
glue
=
(
DWORD
)
glue
-
(
DWORD
)
&
thunk
->
type
;
thunk
->
type
=
THUNKLET_TYPE_LS
;
...
...
@@ -1746,7 +1746,7 @@ static SEGPTR THUNK_AllocSLThunklet( FARPROC target, DWORD relay,
thunk
->
jmp_glue
=
0xEA
;
thunk
->
target
=
(
DWORD
)
target
;
thunk
->
relay
=
(
DWORD
)
relay
;
thunk
->
relay
=
relay
;
thunk
->
glue
=
(
DWORD
)
glue
;
thunk
->
type
=
THUNKLET_TYPE_SL
;
...
...
@@ -2076,7 +2076,7 @@ SEGPTR WINAPI Get16DLLAddress(HMODULE16 handle, LPSTR func_name)
if
(
!
code_sel32
)
{
if
(
!
ThunkletHeap
)
THUNK_Init
();
code_sel32
=
SELECTOR_AllocBlock
(
(
void
*
)
ThunkletHeap
,
0x10000
,
code_sel32
=
SELECTOR_AllocBlock
(
ThunkletHeap
,
0x10000
,
WINE_LDT_FLAGS_CODE
|
WINE_LDT_FLAGS_32BIT
);
if
(
!
code_sel32
)
return
0
;
}
...
...
dlls/kernel32/toolhelp.c
View file @
ca6003b8
...
...
@@ -98,7 +98,7 @@ static BOOL fetch_module( DWORD process, DWORD flags, LDR_MODULE** ldr_mod, ULON
&
pbi
,
sizeof
(
pbi
),
NULL
);
if
(
!
status
)
{
if
(
ReadProcessMemory
(
hProcess
,
&
((
PEB
*
)
pbi
.
PebBaseAddress
)
->
LdrData
,
if
(
ReadProcessMemory
(
hProcess
,
&
pbi
.
PebBaseAddress
->
LdrData
,
&
pLdrData
,
sizeof
(
pLdrData
),
NULL
)
&&
ReadProcessMemory
(
hProcess
,
&
pLdrData
->
InLoadOrderModuleList
.
Flink
,
...
...
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