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
f445ba78
Commit
f445ba78
authored
May 08, 1999
by
Uwe Bonnes
Committed by
Alexandre Julliard
May 08, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed extension handling in LoadLibrary16.
parent
98447497
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
2 deletions
+27
-2
module.c
loader/ne/module.c
+27
-2
No files found.
loader/ne/module.c
View file @
f445ba78
...
...
@@ -1126,13 +1126,38 @@ BOOL NE_CreateProcess( HFILE hFile, OFSTRUCT *ofs, LPCSTR cmd_line, LPCSTR env,
/***********************************************************************
* LoadLibrary16 (KERNEL.95)
*
* In Win95 LoadLibrary16("c:/junkname/user.foo") returns the HINSTANCE
* to user.exe. As GetModuleHandle as of 990425 explicitly asks _not_
* to change its handling of extensions, we have to try a stripped down
* libname here too (bon 990425)
*/
HINSTANCE16
WINAPI
LoadLibrary16
(
LPCSTR
libname
)
{
TRACE
(
module
,
"(%p) %s
\n
"
,
libname
,
libname
);
char
strippedname
[
256
];
char
*
dirsep1
,
*
dirsep2
;
HINSTANCE16
ret
;
dirsep1
=
strrchr
(
libname
,
'\\'
);
dirsep2
=
strrchr
(
libname
,
'/'
);
dirsep1
=
MAX
(
dirsep1
,
dirsep2
);
if
(
!
dirsep1
)
dirsep1
=
(
LPSTR
)
libname
;
else
dirsep1
++
;
lstrcpynA
(
strippedname
,
dirsep1
,
256
);
dirsep1
=
strchr
(
strippedname
,
'.'
);
if
(
dirsep1
)
*
dirsep1
=
0
;
TRACE
(
module
,
"looking for (%p) %s and %s
\n
"
,
libname
,
libname
,
strippedname
);
/* Load library module */
return
LoadModule16
(
libname
,
(
LPVOID
)
-
1
);
ret
=
LoadModule16
(
strippedname
,
(
LPVOID
)
-
1
);
if
(
ret
>
HINSTANCE_ERROR
)
return
ret
;
return
LoadModule16
(
libname
,
(
LPVOID
)
-
1
);
}
...
...
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