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
177d7aac
Commit
177d7aac
authored
Feb 25, 2010
by
Piotr Caban
Committed by
Alexandre Julliard
Feb 25, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Added ITypeLib2_GetLibAttr implementation.
parent
522a00e6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
3 deletions
+38
-3
typelib.c
dlls/oleaut32/tests/typelib.c
+16
-0
typelib2.c
dlls/oleaut32/typelib2.c
+22
-3
No files found.
dlls/oleaut32/tests/typelib.c
View file @
177d7aac
...
@@ -992,6 +992,7 @@ static void test_CreateTypeLib(void) {
...
@@ -992,6 +992,7 @@ static void test_CreateTypeLib(void) {
PARAMDESCEX
paramdescex
;
PARAMDESCEX
paramdescex
;
TYPEDESC
typedesc1
,
typedesc2
;
TYPEDESC
typedesc1
,
typedesc2
;
TYPEATTR
*
typeattr
;
TYPEATTR
*
typeattr
;
TLIBATTR
*
libattr
;
HREFTYPE
hreftype
;
HREFTYPE
hreftype
;
int
impltypeflags
;
int
impltypeflags
;
HRESULT
hres
;
HRESULT
hres
;
...
@@ -1010,6 +1011,21 @@ static void test_CreateTypeLib(void) {
...
@@ -1010,6 +1011,21 @@ static void test_CreateTypeLib(void) {
hres
=
CreateTypeLib2
(
SYS_WIN32
,
filenameW
,
&
createtl
);
hres
=
CreateTypeLib2
(
SYS_WIN32
,
filenameW
,
&
createtl
);
ok
(
hres
==
S_OK
,
"got %08x
\n
"
,
hres
);
ok
(
hres
==
S_OK
,
"got %08x
\n
"
,
hres
);
hres
=
ICreateTypeLib_QueryInterface
(
createtl
,
&
IID_ITypeLib
,
(
void
**
)
&
tl
);
ok
(
hres
==
S_OK
,
"got %08x
\n
"
,
hres
);
hres
=
ITypeLib_GetLibAttr
(
tl
,
&
libattr
);
ok
(
hres
==
S_OK
,
"got %08x
\n
"
,
hres
);
ok
(
libattr
->
syskind
==
SYS_WIN32
,
"syskind = %d
\n
"
,
libattr
->
syskind
);
ok
(
libattr
->
wMajorVerNum
==
0
,
"wMajorVer = %d
\n
"
,
libattr
->
wMajorVerNum
);
ok
(
libattr
->
wMinorVerNum
==
0
,
"wMinorVerNum = %d
\n
"
,
libattr
->
wMinorVerNum
);
ok
(
libattr
->
wLibFlags
==
0
,
"wLibFlags = %d
\n
"
,
libattr
->
wLibFlags
);
ITypeLib_ReleaseTLibAttr
(
tl
,
libattr
);
ITypeLib_Release
(
tl
);
hres
=
ICreateTypeLib_CreateTypeInfo
(
createtl
,
interface1W
,
TKIND_INTERFACE
,
&
createti
);
hres
=
ICreateTypeLib_CreateTypeInfo
(
createtl
,
interface1W
,
TKIND_INTERFACE
,
&
createti
);
ok
(
hres
==
S_OK
,
"got %08x
\n
"
,
hres
);
ok
(
hres
==
S_OK
,
"got %08x
\n
"
,
hres
);
...
...
dlls/oleaut32/typelib2.c
View file @
177d7aac
...
@@ -4260,9 +4260,28 @@ static HRESULT WINAPI ITypeLib2_fnGetLibAttr(
...
@@ -4260,9 +4260,28 @@ static HRESULT WINAPI ITypeLib2_fnGetLibAttr(
{
{
ICreateTypeLib2Impl
*
This
=
impl_from_ITypeLib2
(
iface
);
ICreateTypeLib2Impl
*
This
=
impl_from_ITypeLib2
(
iface
);
FIXME
(
"(%p,%p), stub!
\n
"
,
This
,
ppTLibAttr
);
TRACE
(
"(%p,%p)
\n
"
,
This
,
ppTLibAttr
);
if
(
!
ppTLibAttr
)
return
E_INVALIDARG
;
*
ppTLibAttr
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
TLIBATTR
));
if
(
!*
ppTLibAttr
)
return
E_OUTOFMEMORY
;
return
E_OUTOFMEMORY
;
if
(
This
->
typelib_header
.
posguid
!=
-
1
)
{
MSFT_GuidEntry
*
guid
;
guid
=
(
MSFT_GuidEntry
*
)
&
This
->
typelib_segment_data
[
MSFT_SEG_GUID
][
This
->
typelib_header
.
posguid
];
(
*
ppTLibAttr
)
->
guid
=
guid
->
guid
;
}
(
*
ppTLibAttr
)
->
lcid
=
This
->
typelib_header
.
lcid
;
(
*
ppTLibAttr
)
->
syskind
=
This
->
typelib_header
.
varflags
&
0x3
;
(
*
ppTLibAttr
)
->
wMajorVerNum
=
This
->
typelib_header
.
version
&
0xffff
;
(
*
ppTLibAttr
)
->
wMinorVerNum
=
This
->
typelib_header
.
version
>>
16
;
(
*
ppTLibAttr
)
->
wLibFlags
=
This
->
typelib_header
.
flags
;
return
S_OK
;
}
}
/******************************************************************************
/******************************************************************************
...
@@ -4366,9 +4385,9 @@ static void WINAPI ITypeLib2_fnReleaseTLibAttr(
...
@@ -4366,9 +4385,9 @@ static void WINAPI ITypeLib2_fnReleaseTLibAttr(
ITypeLib2
*
iface
,
ITypeLib2
*
iface
,
TLIBATTR
*
pTLibAttr
)
TLIBATTR
*
pTLibAttr
)
{
{
ICreateTypeLib2Impl
*
This
=
impl_from_ITypeLib2
(
iface
);
TRACE
(
"(%p,%p)
\n
"
,
iface
,
pTLibAttr
);
FIXME
(
"(%p,%p), stub!
\n
"
,
This
,
pTLibAttr
);
HeapFree
(
GetProcessHeap
(),
0
,
pTLibAttr
);
}
}
/******************************************************************************
/******************************************************************************
...
...
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