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
84fb1e1f
Commit
84fb1e1f
authored
Dec 04, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Allow module with extensions in forward specifications.
parent
08d1398d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
loader.c
dlls/ntdll/loader.c
+8
-3
No files found.
dlls/ntdll/loader.c
View file @
84fb1e1f
...
...
@@ -328,13 +328,18 @@ static FARPROC find_forwarded_export( HMODULE module, const char *forward )
DWORD
exp_size
;
WINE_MODREF
*
wm
;
WCHAR
mod_name
[
32
];
const
char
*
end
=
strchr
(
forward
,
'.'
);
const
char
*
end
=
str
r
chr
(
forward
,
'.'
);
FARPROC
proc
=
NULL
;
if
(
!
end
)
return
NULL
;
if
((
end
-
forward
)
*
sizeof
(
WCHAR
)
>=
sizeof
(
mod_name
)
-
sizeof
(
dllW
)
)
return
NULL
;
if
((
end
-
forward
)
*
sizeof
(
WCHAR
)
>=
sizeof
(
mod_name
))
return
NULL
;
ascii_to_unicode
(
mod_name
,
forward
,
end
-
forward
);
memcpy
(
mod_name
+
(
end
-
forward
),
dllW
,
sizeof
(
dllW
)
);
mod_name
[
end
-
forward
]
=
0
;
if
(
!
strchrW
(
mod_name
,
'.'
))
{
if
((
end
-
forward
)
*
sizeof
(
WCHAR
)
>=
sizeof
(
mod_name
)
-
sizeof
(
dllW
))
return
NULL
;
memcpy
(
mod_name
+
(
end
-
forward
),
dllW
,
sizeof
(
dllW
)
);
}
if
(
!
(
wm
=
find_basename_module
(
mod_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