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
Zsolt Vadász
wine
Commits
8d4aa7de
Commit
8d4aa7de
authored
17 years ago
by
Jacek Caban
Committed by
Alexandre Julliard
17 years ago
Browse files
Options
Downloads
Patches
Plain Diff
jscript: Added DllCanUnloadNow implementation.
parent
26b38dc5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dlls/jscript/jscript.c
+5
-1
5 additions, 1 deletion
dlls/jscript/jscript.c
dlls/jscript/jscript.h
+12
-0
12 additions, 0 deletions
dlls/jscript/jscript.h
dlls/jscript/jscript_main.c
+11
-2
11 additions, 2 deletions
dlls/jscript/jscript_main.c
with
28 additions
and
3 deletions
dlls/jscript/jscript.c
+
5
−
1
View file @
8d4aa7de
...
...
@@ -97,8 +97,10 @@ static ULONG WINAPI JScript_Release(IActiveScript *iface)
TRACE
(
"(%p) ref=%d
\n
"
,
iface
,
ref
);
if
(
!
ref
)
if
(
!
ref
)
{
heap_free
(
This
);
unlock_module
();
}
return
ref
;
}
...
...
@@ -427,6 +429,8 @@ HRESULT WINAPI JScriptFactory_CreateInstance(IClassFactory *iface, IUnknown *pUn
TRACE
(
"(%p %s %p)
\n
"
,
pUnkOuter
,
debugstr_guid
(
riid
),
ppv
);
lock_module
();
ret
=
heap_alloc
(
sizeof
(
*
ret
));
ret
->
lpIActiveScriptVtbl
=
&
JScriptVtbl
;
...
...
This diff is collapsed.
Click to expand it.
dlls/jscript/jscript.h
+
12
−
0
View file @
8d4aa7de
...
...
@@ -28,6 +28,18 @@
HRESULT
WINAPI
JScriptFactory_CreateInstance
(
IClassFactory
*
,
IUnknown
*
,
REFIID
,
void
**
);
extern
LONG
module_ref
;
static
inline
void
lock_module
(
void
)
{
InterlockedIncrement
(
&
module_ref
);
}
static
inline
void
unlock_module
(
void
)
{
InterlockedDecrement
(
&
module_ref
);
}
static
inline
void
*
heap_alloc
(
size_t
len
)
{
return
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
...
...
This diff is collapsed.
Click to expand it.
dlls/jscript/jscript_main.c
+
11
−
2
View file @
8d4aa7de
...
...
@@ -30,6 +30,8 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
jscript
);
LONG
module_ref
=
0
;
static
const
CLSID
CLSID_JScript
=
{
0xf414c260
,
0x6ac0
,
0x11cf
,{
0xb6
,
0xd1
,
0x00
,
0xaa
,
0x00
,
0xbb
,
0xbb
,
0x58
}};
static
const
CLSID
CLSID_JScriptAuthor
=
...
...
@@ -75,6 +77,12 @@ static ULONG WINAPI ClassFactory_Release(IClassFactory *iface)
static
HRESULT
WINAPI
ClassFactory_LockServer
(
IClassFactory
*
iface
,
BOOL
fLock
)
{
TRACE
(
"(%p)->(%x)
\n
"
,
iface
,
fLock
);
if
(
fLock
)
lock_module
();
else
unlock_module
();
return
S_OK
;
}
...
...
@@ -127,8 +135,9 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
*/
HRESULT
WINAPI
DllCanUnloadNow
(
void
)
{
FIXME
(
"()
\n
"
);
return
S_FALSE
;
TRACE
(
"() ref=%d
\n
"
,
module_ref
);
return
module_ref
?
S_FALSE
:
S_OK
;
}
/***********************************************************************
...
...
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