Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
4 deletions
+39
-4
typelib.c
dlls/oleaut32/tests/typelib.c
+16
-0
typelib2.c
dlls/oleaut32/typelib2.c
+23
-4
No files found.
dlls/oleaut32/tests/typelib.c
View file @
177d7aac
...
...
@@ -992,6 +992,7 @@ static void test_CreateTypeLib(void) {
PARAMDESCEX
paramdescex
;
TYPEDESC
typedesc1
,
typedesc2
;
TYPEATTR
*
typeattr
;
TLIBATTR
*
libattr
;
HREFTYPE
hreftype
;
int
impltypeflags
;
HRESULT
hres
;
...
...
@@ -1010,6 +1011,21 @@ static void test_CreateTypeLib(void) {
hres
=
CreateTypeLib2
(
SYS_WIN32
,
filenameW
,
&
createtl
);
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
);
ok
(
hres
==
S_OK
,
"got %08x
\n
"
,
hres
);
...
...
dlls/oleaut32/typelib2.c
View file @
177d7aac
...
...
@@ -4260,9 +4260,28 @@ static HRESULT WINAPI ITypeLib2_fnGetLibAttr(
{
ICreateTypeLib2Impl
*
This
=
impl_from_ITypeLib2
(
iface
);
FIXME
(
"(%p,%p), stub!
\n
"
,
This
,
ppTLibAttr
);
TRACE
(
"(%p,%p)
\n
"
,
This
,
ppTLibAttr
);
return
E_OUTOFMEMORY
;
if
(
!
ppTLibAttr
)
return
E_INVALIDARG
;
*
ppTLibAttr
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
TLIBATTR
));
if
(
!*
ppTLibAttr
)
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(
ITypeLib2
*
iface
,
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