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
6ebdf1ba
Commit
6ebdf1ba
authored
Mar 11, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Mar 11, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windows.gaming.input: Return correct error from DllGetActivationFactory.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
da8e060d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
main.c
dlls/windows.gaming.input/main.c
+5
-5
No files found.
dlls/windows.gaming.input/main.c
View file @
6ebdf1ba
...
...
@@ -169,7 +169,6 @@ HRESULT WINAPI DllGetActivationFactory( HSTRING class_str, IActivationFactory **
{
static
INIT_ONCE
init_once
=
INIT_ONCE_STATIC_INIT
;
const
WCHAR
*
buffer
=
WindowsGetStringRawBuffer
(
class_str
,
NULL
);
HRESULT
hr
=
REGDB_E_CLASSNOTREG
;
TRACE
(
"class %s, factory %p.
\n
"
,
debugstr_w
(
buffer
),
factory
);
...
...
@@ -178,13 +177,14 @@ HRESULT WINAPI DllGetActivationFactory( HSTRING class_str, IActivationFactory **
*
factory
=
NULL
;
if
(
!
wcscmp
(
buffer
,
RuntimeClass_Windows_Gaming_Input_RawGameController
))
hr
=
ICustomGameControllerFactory_QueryInterface
(
controller_factory
,
&
IID_IActivationFactory
,
(
void
**
)
factory
);
ICustomGameControllerFactory_QueryInterface
(
controller_factory
,
&
IID_IActivationFactory
,
(
void
**
)
factory
);
if
(
!
wcscmp
(
buffer
,
RuntimeClass_Windows_Gaming_Input_Gamepad
))
hr
=
ICustomGameControllerFactory_QueryInterface
(
gamepad_factory
,
&
IID_IActivationFactory
,
(
void
**
)
factory
);
ICustomGameControllerFactory_QueryInterface
(
gamepad_factory
,
&
IID_IActivationFactory
,
(
void
**
)
factory
);
if
(
!
wcscmp
(
buffer
,
RuntimeClass_Windows_Gaming_Input_Custom_GameControllerFactoryManager
))
hr
=
IGameControllerFactoryManagerStatics2_QueryInterface
(
manager_factory
,
&
IID_IActivationFactory
,
(
void
**
)
factory
);
IGameControllerFactoryManagerStatics2_QueryInterface
(
manager_factory
,
&
IID_IActivationFactory
,
(
void
**
)
factory
);
return
hr
;
if
(
*
factory
)
return
S_OK
;
return
CLASS_E_CLASSNOTAVAILABLE
;
}
BOOL
WINAPI
DllMain
(
HINSTANCE
instance
,
DWORD
reason
,
void
*
reserved
)
...
...
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