Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yoann Laissus
wine
Commits
f1e1c399
Commit
f1e1c399
authored
25 years ago
by
Uwe Bonnes
Committed by
Alexandre Julliard
25 years ago
Browse files
Options
Downloads
Patches
Plain Diff
NE_LoadFileModule: Free module when NE_LoadDLLs fails.
parent
a319df34
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
loader/ne/module.c
+5
-2
5 additions, 2 deletions
loader/ne/module.c
with
5 additions
and
2 deletions
loader/ne/module.c
+
5
−
2
View file @
f1e1c399
...
...
@@ -43,7 +43,7 @@ static NE_MODULE *pCachedModule = 0; /* Module cached by NE_OpenFile */
static
HMODULE16
NE_LoadBuiltin
(
LPCSTR
name
,
BOOL
force
)
{
return
0
;
}
HMODULE16
(
*
fnBUILTIN_LoadModule
)(
LPCSTR
name
,
BOOL
force
)
=
NE_LoadBuiltin
;
static
BOOL16
NE_FreeModule
(
HMODULE16
hModule
,
BOOL
call_wep
);
/***********************************************************************
* NE_GetPtr
...
...
@@ -814,7 +814,10 @@ static HINSTANCE16 NE_LoadFileModule( HFILE16 hFile, OFSTRUCT *ofs,
/* Load the referenced DLLs */
if
(
!
NE_LoadDLLs
(
pModule
))
return
2
;
/* File not found (FIXME: free everything) */
{
NE_FreeModule
(
hModule
,
0
);
return
2
;
}
/* Load the segments */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment