Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libSDL
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
libSDL
Commits
61d3a02e
Commit
61d3a02e
authored
Oct 26, 2011
by
Ryan C. Gordon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't bother checking S_OK here, it'll work in falling through.
parent
62babe19
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
SDL_windows.c
src/core/windows/SDL_windows.c
+3
-2
No files found.
src/core/windows/SDL_windows.c
View file @
61d3a02e
...
...
@@ -42,10 +42,11 @@ WIN_SetError(const char *prefix)
HRESULT
WIN_CoInitialize
(
void
)
{
const
HRESULT
hr
=
CoInitialize
(
NULL
);
/* S_FALSE means success, but someone else already initialized. */
/* You still need to call CoUninitialize in this case! */
const
HRESULT
hr
=
CoInitialize
(
NULL
);
if
((
hr
==
S_OK
)
||
(
hr
==
S_FALSE
))
{
if
(
hr
==
S_FALSE
)
{
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