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
677302cf
Commit
677302cf
authored
Dec 27, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 27, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Move common define to a header.
parent
c9249229
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
typelib.c
dlls/oleaut32/typelib.c
+1
-1
typelib.h
dlls/oleaut32/typelib.h
+4
-1
typelib2.c
dlls/oleaut32/typelib2.c
+1
-1
No files found.
dlls/oleaut32/typelib.c
View file @
677302cf
...
@@ -2744,7 +2744,7 @@ static HRESULT TLB_Mapping_Open(LPCWSTR path, LPVOID *ppBase, DWORD *pdwTLBLengt
...
@@ -2744,7 +2744,7 @@ static HRESULT TLB_Mapping_Open(LPCWSTR path, LPVOID *ppBase, DWORD *pdwTLBLengt
* find the type of the typelib file and map the typelib resource into
* find the type of the typelib file and map the typelib resource into
* the memory
* the memory
*/
*/
#define MSFT_SIGNATURE 0x5446534D
/* "MSFT" */
#define SLTG_SIGNATURE 0x47544c53
/* "SLTG" */
#define SLTG_SIGNATURE 0x47544c53
/* "SLTG" */
static
HRESULT
TLB_ReadTypeLib
(
LPCWSTR
pszFileName
,
LPWSTR
pszPath
,
UINT
cchPath
,
ITypeLib2
**
ppTypeLib
)
static
HRESULT
TLB_ReadTypeLib
(
LPCWSTR
pszFileName
,
LPWSTR
pszPath
,
UINT
cchPath
,
ITypeLib2
**
ppTypeLib
)
{
{
...
...
dlls/oleaut32/typelib.h
View file @
677302cf
...
@@ -52,8 +52,11 @@
...
@@ -52,8 +52,11 @@
* it is at the beginning of a type lib file
* it is at the beginning of a type lib file
*
*
*/
*/
#define MSFT_SIGNATURE 0x5446534D
/* "MSFT" */
typedef
struct
tagMSFT_Header
{
typedef
struct
tagMSFT_Header
{
/*0x00*/
INT
magic1
;
/* 0x5446534D "MSFT" */
/*0x00*/
INT
magic1
;
/* 0x5446534D "MSFT" */
INT
magic2
;
/* 0x00010002 version nr? */
INT
magic2
;
/* 0x00010002 version nr? */
INT
posguid
;
/* position of libid in guid table */
INT
posguid
;
/* position of libid in guid table */
/* (should be, else -1) */
/* (should be, else -1) */
...
...
dlls/oleaut32/typelib2.c
View file @
677302cf
...
@@ -260,7 +260,7 @@ static inline SYSKIND ctl2_get_syskind(const ICreateTypeLib2Impl *This)
...
@@ -260,7 +260,7 @@ static inline SYSKIND ctl2_get_syskind(const ICreateTypeLib2Impl *This)
static
void
ctl2_init_header
(
static
void
ctl2_init_header
(
ICreateTypeLib2Impl
*
This
)
/* [I] The typelib to initialize. */
ICreateTypeLib2Impl
*
This
)
/* [I] The typelib to initialize. */
{
{
This
->
typelib_header
.
magic1
=
0x5446534d
;
This
->
typelib_header
.
magic1
=
MSFT_SIGNATURE
;
This
->
typelib_header
.
magic2
=
0x00010002
;
This
->
typelib_header
.
magic2
=
0x00010002
;
This
->
typelib_header
.
posguid
=
-
1
;
This
->
typelib_header
.
posguid
=
-
1
;
This
->
typelib_header
.
lcid
=
This
->
typelib_header
.
lcid2
=
GetUserDefaultLCID
();
This
->
typelib_header
.
lcid
=
This
->
typelib_header
.
lcid2
=
GetUserDefaultLCID
();
...
...
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