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
b92ea61e
Commit
b92ea61e
authored
Aug 19, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 20, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mstask: Call interface methods properly.
parent
955e27d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
factory.c
dlls/mstask/factory.c
+10
-10
No files found.
dlls/mstask/factory.c
View file @
b92ea61e
...
@@ -56,14 +56,14 @@ static HRESULT WINAPI MSTASK_IClassFactory_QueryInterface(
...
@@ -56,14 +56,14 @@ static HRESULT WINAPI MSTASK_IClassFactory_QueryInterface(
return
E_NOINTERFACE
;
return
E_NOINTERFACE
;
}
}
static
ULONG
WINAPI
MSTASK_IClassFactory_AddRef
(
LPCLASSFACTORY
i
face
)
static
ULONG
WINAPI
MSTASK_IClassFactory_AddRef
(
IClassFactory
*
face
)
{
{
TRACE
(
"
\n
"
);
TRACE
(
"
\n
"
);
InterlockedIncrement
(
&
dll_ref
);
InterlockedIncrement
(
&
dll_ref
);
return
2
;
return
2
;
}
}
static
ULONG
WINAPI
MSTASK_IClassFactory_Release
(
LPCLASSFACTORY
iface
)
static
ULONG
WINAPI
MSTASK_IClassFactory_Release
(
IClassFactory
*
iface
)
{
{
TRACE
(
"
\n
"
);
TRACE
(
"
\n
"
);
InterlockedDecrement
(
&
dll_ref
);
InterlockedDecrement
(
&
dll_ref
);
...
@@ -71,8 +71,8 @@ static ULONG WINAPI MSTASK_IClassFactory_Release(LPCLASSFACTORY iface)
...
@@ -71,8 +71,8 @@ static ULONG WINAPI MSTASK_IClassFactory_Release(LPCLASSFACTORY iface)
}
}
static
HRESULT
WINAPI
MSTASK_IClassFactory_CreateInstance
(
static
HRESULT
WINAPI
MSTASK_IClassFactory_CreateInstance
(
LPCLASSFACTORY
iface
,
IClassFactory
*
iface
,
LPUNKNOWN
pUnkOuter
,
IUnknown
*
pUnkOuter
,
REFIID
riid
,
REFIID
riid
,
LPVOID
*
ppvObj
)
LPVOID
*
ppvObj
)
{
{
...
@@ -89,21 +89,21 @@ static HRESULT WINAPI MSTASK_IClassFactory_CreateInstance(
...
@@ -89,21 +89,21 @@ static HRESULT WINAPI MSTASK_IClassFactory_CreateInstance(
if
(
FAILED
(
res
))
if
(
FAILED
(
res
))
return
res
;
return
res
;
res
=
I
TaskScheduler
_QueryInterface
(
punk
,
riid
,
ppvObj
);
res
=
I
Unknown
_QueryInterface
(
punk
,
riid
,
ppvObj
);
I
TaskScheduler
_Release
(
punk
);
I
Unknown
_Release
(
punk
);
return
res
;
return
res
;
}
}
static
HRESULT
WINAPI
MSTASK_IClassFactory_LockServer
(
static
HRESULT
WINAPI
MSTASK_IClassFactory_LockServer
(
LPCLASSFACTORY
iface
,
IClassFactory
*
iface
,
BOOL
fLock
)
BOOL
fLock
)
{
{
TRACE
(
"
\n
"
);
TRACE
(
"
\n
"
);
if
(
fLock
!=
FALSE
)
if
(
fLock
)
MSTASK_
IClassFactory_AddRef
(
iface
);
IClassFactory_AddRef
(
iface
);
else
else
MSTASK_
IClassFactory_Release
(
iface
);
IClassFactory_Release
(
iface
);
return
S_OK
;
return
S_OK
;
}
}
...
...
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