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
af5745f5
Commit
af5745f5
authored
Apr 19, 1999
by
Bertho Stultiens
Committed by
Alexandre Julliard
Apr 19, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Attach notifications must be send after all recursive dependencies are
loaded and not before.
parent
0b52adaa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
module.c
loader/module.c
+12
-8
No files found.
loader/module.c
View file @
af5745f5
...
@@ -1212,8 +1212,20 @@ HMODULE WINAPI LoadLibraryExA(LPCSTR libname, HFILE hfile, DWORD flags)
...
@@ -1212,8 +1212,20 @@ HMODULE WINAPI LoadLibraryExA(LPCSTR libname, HFILE hfile, DWORD flags)
return
0
;
return
0
;
}
}
EnterCriticalSection
(
&
PROCESS_Current
()
->
crit_section
);
wm
=
MODULE_LoadLibraryExA
(
libname
,
hfile
,
flags
);
wm
=
MODULE_LoadLibraryExA
(
libname
,
hfile
,
flags
);
if
(
wm
&&
!
MODULE_DllProcessAttach
(
wm
,
NULL
))
{
WARN
(
module
,
"Attach failed for module '%s',
\n
"
,
libname
);
MODULE_FreeLibrary
(
wm
);
SetLastError
(
ERROR_DLL_INIT_FAILED
);
wm
=
NULL
;
}
LeaveCriticalSection
(
&
PROCESS_Current
()
->
crit_section
);
return
wm
?
wm
->
module
:
0
;
return
wm
?
wm
->
module
:
0
;
}
}
...
@@ -1290,14 +1302,6 @@ WINE_MODREF *MODULE_LoadLibraryExA( LPCSTR libname, HFILE hfile, DWORD flags )
...
@@ -1290,14 +1302,6 @@ WINE_MODREF *MODULE_LoadLibraryExA( LPCSTR libname, HFILE hfile, DWORD flags )
/* decrement the dependencies through the MODULE_FreeLibrary call. */
/* decrement the dependencies through the MODULE_FreeLibrary call. */
pwm
->
refCount
++
;
pwm
->
refCount
++
;
if
(
!
MODULE_DllProcessAttach
(
pwm
,
NULL
))
{
WARN
(
module
,
"Attach failed for module '%s',
\n
"
,
libname
);
MODULE_FreeLibrary
(
pwm
);
SetLastError
(
ERROR_DLL_INIT_FAILED
);
pwm
=
NULL
;
}
LeaveCriticalSection
(
&
PROCESS_Current
()
->
crit_section
);
LeaveCriticalSection
(
&
PROCESS_Current
()
->
crit_section
);
return
pwm
;
return
pwm
;
}
}
...
...
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