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
b6ecb9a2
Commit
b6ecb9a2
authored
May 12, 1999
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed some error handling a bit.
parent
bcb4bb69
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
pe_image.c
loader/pe_image.c
+7
-4
No files found.
loader/pe_image.c
View file @
b6ecb9a2
...
...
@@ -211,8 +211,11 @@ FARPROC PE_FindExportedFunction(
assert
(
end
-
forward
<
256
);
strncpy
(
module
,
forward
,
(
end
-
forward
));
module
[
end
-
forward
]
=
0
;
wm
=
MODULE_FindModule
(
module
);
assert
(
wm
);
if
(
!
(
wm
=
MODULE_FindModule
(
module
)))
{
ERR_
(
win32
)(
"module not found for forward '%s'
\n
"
,
forward
);
return
NULL
;
}
return
MODULE_GetProcAddress
(
wm
->
module
,
end
+
1
,
snoop
);
}
return
NULL
;
...
...
@@ -238,8 +241,7 @@ DWORD fixup_imports( WINE_MODREF *wm )
/* first, count the number of imported non-internal modules */
pe_imp
=
pem
->
pe_import
;
if
(
!
pe_imp
)
ERR_
(
win32
)(
"no import directory????
\n
"
);
if
(
!
pe_imp
)
return
0
;
/* We assume that we have at least one import with !0 characteristics and
* detect broken imports with all characteristsics 0 (notably Borland) and
...
...
@@ -252,6 +254,7 @@ DWORD fixup_imports( WINE_MODREF *wm )
break
;
i
++
;
}
if
(
!
i
)
return
0
;
/* no imports */
/* Allocate module dependency list */
wm
->
nDeps
=
i
;
...
...
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