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
261bc385
Commit
261bc385
authored
Apr 19, 2010
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Apr 19, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi/tests: Add initial test for SHGetThreadRef.
parent
7a7ece78
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
67 additions
and
0 deletions
+67
-0
Makefile.in
dlls/shlwapi/tests/Makefile.in
+1
-0
thread.c
dlls/shlwapi/tests/thread.c
+66
-0
No files found.
dlls/shlwapi/tests/Makefile.in
View file @
261bc385
...
...
@@ -15,6 +15,7 @@ C_SRCS = \
path.c
\
shreg.c
\
string.c
\
thread.c
\
url.c
@MAKE_TEST_RULES@
dlls/shlwapi/tests/thread.c
0 → 100644
View file @
261bc385
/* Tests for Thread and SHGlobalCounter functions
*
* Copyright 2010 Detlef Riekenberg
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdio.h>
#include <stdarg.h>
#define COBJMACROS
#include "windef.h"
#include "winbase.h"
#include "winerror.h"
#include "ole2.h"
#include "shlwapi.h"
#include "wine/test.h"
static
HRESULT
(
WINAPI
*
pSHGetThreadRef
)(
IUnknown
**
);
/* ##### */
static
void
test_SHGetThreadRef
(
void
)
{
IUnknown
*
punk
;
HRESULT
hr
;
/* Not present before IE 5 */
if
(
!
pSHGetThreadRef
)
{
win_skip
(
"SHGetThreadRef not found
\n
"
);
return
;
}
punk
=
NULL
;
hr
=
pSHGetThreadRef
(
&
punk
);
ok
(
(
hr
==
E_NOINTERFACE
)
&&
(
punk
==
NULL
),
"got 0x%x and %p (expected E_NOINTERFACE and NULL)
\n
"
,
hr
,
punk
);
if
(
0
)
{
/* this crash on Windows */
hr
=
pSHGetThreadRef
(
NULL
);
}
}
START_TEST
(
thread
)
{
HMODULE
hshlwapi
=
GetModuleHandleA
(
"shlwapi.dll"
);
pSHGetThreadRef
=
(
void
*
)
GetProcAddress
(
hshlwapi
,
"SHGetThreadRef"
);
test_SHGetThreadRef
();
}
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