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
0fa15279
Commit
0fa15279
authored
Jan 27, 2017
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 27, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scrobj: Implement get_GUID().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
99a9f531
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
4 deletions
+31
-4
Makefile.in
dlls/scrobj/Makefile.in
+1
-1
scrobj.c
dlls/scrobj/scrobj.c
+30
-3
No files found.
dlls/scrobj/Makefile.in
View file @
0fa15279
MODULE
=
scrobj.dll
IMPORTS
=
uuid oleaut32
IMPORTS
=
uuid ole
32 ole
aut32
C_SRCS
=
\
scrobj.c
...
...
dlls/scrobj/scrobj.c
View file @
0fa15279
...
...
@@ -113,6 +113,8 @@ struct scriptlet_typelib
{
IGenScriptletTLib
IGenScriptletTLib_iface
;
LONG
ref
;
BSTR
guid
;
};
static
inline
struct
scriptlet_typelib
*
impl_from_IGenScriptletTLib
(
IGenScriptletTLib
*
iface
)
...
...
@@ -155,7 +157,10 @@ static ULONG WINAPI scriptlet_typelib_Release(IGenScriptletTLib *iface)
TRACE
(
"(%p)->(%u)
\n
"
,
This
,
ref
);
if
(
!
ref
)
{
SysFreeString
(
This
->
guid
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
return
ref
;
}
...
...
@@ -346,13 +351,34 @@ static HRESULT WINAPI scriptlet_typelib_put_GUID(IGenScriptletTLib *iface, BSTR
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
scriptlet_typelib_get_GUID
(
IGenScriptletTLib
*
iface
,
BSTR
*
guid
)
static
HRESULT
WINAPI
scriptlet_typelib_get_GUID
(
IGenScriptletTLib
*
iface
,
BSTR
*
ret
)
{
struct
scriptlet_typelib
*
This
=
impl_from_IGenScriptletTLib
(
iface
);
FIXME
(
"(%p, %p): stub
\n
"
,
This
,
guid
);
TRACE
(
"(%p, %p)
\n
"
,
This
,
ret
);
return
E_NOTIMPL
;
*
ret
=
NULL
;
if
(
!
This
->
guid
)
{
WCHAR
guidW
[
39
];
GUID
guid
;
HRESULT
hr
;
hr
=
CoCreateGuid
(
&
guid
);
if
(
FAILED
(
hr
))
return
hr
;
hr
=
StringFromGUID2
(
&
guid
,
guidW
,
sizeof
(
guidW
)
/
sizeof
(
guidW
[
0
]));
if
(
FAILED
(
hr
))
return
hr
;
if
(
!
(
This
->
guid
=
SysAllocString
(
guidW
)))
return
E_OUTOFMEMORY
;
}
*
ret
=
SysAllocString
(
This
->
guid
);
return
*
ret
?
S_OK
:
E_OUTOFMEMORY
;
}
static
const
IGenScriptletTLibVtbl
scriptlet_typelib_vtbl
=
...
...
@@ -434,6 +460,7 @@ HRESULT WINAPI scriptlet_typelib_CreateInstance(IClassFactory *factory, IUnknown
This
->
IGenScriptletTLib_iface
.
lpVtbl
=
&
scriptlet_typelib_vtbl
;
This
->
ref
=
1
;
This
->
guid
=
NULL
;
hr
=
IGenScriptletTLib_QueryInterface
(
&
This
->
IGenScriptletTLib_iface
,
riid
,
obj
);
IGenScriptletTLib_Release
(
&
This
->
IGenScriptletTLib_iface
);
...
...
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