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
d159b332
Commit
d159b332
authored
Jan 06, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 08, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Forward CLSIDFromProgIDWrap to ole32 (with test).
parent
5e4f792e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
2 deletions
+27
-2
shlwapi.spec
dlls/shlwapi/shlwapi.spec
+1
-1
Makefile.in
dlls/shlwapi/tests/Makefile.in
+1
-0
clsid.c
dlls/shlwapi/tests/clsid.c
+25
-1
No files found.
dlls/shlwapi/shlwapi.spec
View file @
d159b332
...
@@ -432,7 +432,7 @@
...
@@ -432,7 +432,7 @@
432 stub -noname SHSendMessageBroadcastA
432 stub -noname SHSendMessageBroadcastA
433 stub -noname SHSendMessageBroadcastW
433 stub -noname SHSendMessageBroadcastW
434 stdcall @(long long long long long long ptr) user32.SendMessageTimeoutW
434 stdcall @(long long long long long long ptr) user32.SendMessageTimeoutW
435 st
ub -noname CLSIDFromProgIDWrap
435 st
dcall -noname CLSIDFromProgIDWrap(wstr ptr) ole32.CLSIDFromProgID
436 stdcall -noname CLSIDFromStringWrap(wstr ptr)
436 stdcall -noname CLSIDFromStringWrap(wstr ptr)
437 stdcall -noname IsOS(long)
437 stdcall -noname IsOS(long)
438 stub -noname SHLoadRegUIStringA
438 stub -noname SHLoadRegUIStringA
...
...
dlls/shlwapi/tests/Makefile.in
View file @
d159b332
...
@@ -4,6 +4,7 @@ SRCDIR = @srcdir@
...
@@ -4,6 +4,7 @@ SRCDIR = @srcdir@
VPATH
=
@srcdir@
VPATH
=
@srcdir@
TESTDLL
=
shlwapi.dll
TESTDLL
=
shlwapi.dll
IMPORTS
=
shlwapi advapi32 ole32 oleaut32 kernel32
IMPORTS
=
shlwapi advapi32 ole32 oleaut32 kernel32
EXTRALIBS
=
-luuid
CTESTS
=
\
CTESTS
=
\
clist.c
\
clist.c
\
...
...
dlls/shlwapi/tests/clsid.c
View file @
d159b332
...
@@ -19,7 +19,6 @@
...
@@ -19,7 +19,6 @@
#include <stdio.h>
#include <stdio.h>
#define INITGUID
#include "wine/test.h"
#include "wine/test.h"
#include "winbase.h"
#include "winbase.h"
#include "winerror.h"
#include "winerror.h"
...
@@ -27,6 +26,10 @@
...
@@ -27,6 +26,10 @@
#include "winuser.h"
#include "winuser.h"
#include "shlguid.h"
#include "shlguid.h"
#include "shobjidl.h"
#include "shobjidl.h"
#include "olectl.h"
#define INITGUID
#include "initguid.h"
/* Function ptrs for ordinal calls */
/* Function ptrs for ordinal calls */
static
HMODULE
hShlwapi
=
0
;
static
HMODULE
hShlwapi
=
0
;
...
@@ -153,6 +156,26 @@ static void test_ClassIDs(void)
...
@@ -153,6 +156,26 @@ static void test_ClassIDs(void)
ok
(
szBuff
[
0
]
==
'{'
,
"Didn't write to buffer with ok length
\n
"
);
ok
(
szBuff
[
0
]
==
'{'
,
"Didn't write to buffer with ok length
\n
"
);
}
}
static
void
test_CLSIDFromProgIDWrap
(
void
)
{
HRESULT
(
WINAPI
*
pCLSIDFromProgIDWrap
)(
LPCOLESTR
,
LPCLSID
);
CLSID
clsid
=
IID_NULL
;
HRESULT
hres
;
static
const
WCHAR
wszStdPicture
[]
=
{
'S'
,
't'
,
'd'
,
'P'
,
'i'
,
'c'
,
't'
,
'u'
,
'r'
,
'e'
,
0
};
pCLSIDFromProgIDWrap
=
(
void
*
)
GetProcAddress
(
hShlwapi
,(
char
*
)
435
);
hres
=
pCLSIDFromProgIDWrap
(
wszStdPicture
,
&
clsid
);
ok
(
hres
==
S_OK
,
"CLSIDFromProgIDWrap failed: %08x
\n
"
,
hres
);
ok
(
IsEqualGUID
(
&
CLSID_StdPicture
,
&
clsid
),
"wrong clsid
\n
"
);
hres
=
pCLSIDFromProgIDWrap
(
NULL
,
&
clsid
);
ok
(
hres
==
E_INVALIDARG
,
"CLSIDFromProgIDWrap failed: %08x, expected E_INVALIDARG
\n
"
,
hres
);
hres
=
pCLSIDFromProgIDWrap
(
wszStdPicture
,
NULL
);
ok
(
hres
==
E_INVALIDARG
,
"CLSIDFromProgIDWrap failed: %08x, expected E_INVALIDARG
\n
"
,
hres
);
}
START_TEST
(
clsid
)
START_TEST
(
clsid
)
{
{
...
@@ -165,6 +188,7 @@ START_TEST(clsid)
...
@@ -165,6 +188,7 @@ START_TEST(clsid)
}
}
test_ClassIDs
();
test_ClassIDs
();
test_CLSIDFromProgIDWrap
();
if
(
hShlwapi
)
if
(
hShlwapi
)
FreeLibrary
(
hShlwapi
);
FreeLibrary
(
hShlwapi
);
...
...
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