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
5cdfa593
Commit
5cdfa593
authored
Mar 22, 2003
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed duplicate initialization of some of the wm->ldr fields.
parent
2d1c7906
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
loader.c
dlls/ntdll/loader.c
+1
-4
No files found.
dlls/ntdll/loader.c
View file @
5cdfa593
...
...
@@ -93,9 +93,6 @@ WINE_MODREF *MODULE_AllocModRef( HMODULE hModule, LPCSTR filename )
if
((
wm
=
RtlAllocateHeap
(
ntdll_get_process_heap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
wm
)
+
long_len
+
short_len
+
1
)))
{
wm
->
ldr
.
BaseAddress
=
hModule
;
wm
->
ldr
.
TlsIndex
=
-
1
;
wm
->
filename
=
wm
->
data
;
memcpy
(
wm
->
filename
,
filename
,
long_len
+
1
);
if
((
wm
->
modname
=
strrchr
(
wm
->
filename
,
'\\'
)))
wm
->
modname
++
;
...
...
@@ -124,7 +121,7 @@ WINE_MODREF *MODULE_AllocModRef( HMODULE hModule, LPCSTR filename )
RtlCreateUnicodeStringFromAsciiz
(
&
wm
->
ldr
.
BaseDllName
,
wm
->
modname
);
wm
->
ldr
.
Flags
=
0
;
wm
->
ldr
.
LoadCount
=
0
;
wm
->
ldr
.
TlsIndex
=
0
;
wm
->
ldr
.
TlsIndex
=
-
1
;
wm
->
ldr
.
SectionHandle
=
NULL
;
wm
->
ldr
.
CheckSum
=
0
;
wm
->
ldr
.
TimeDateStamp
=
0
;
...
...
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