Commit 677302cf authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

oleaut32: Move common define to a header.

parent c9249229
...@@ -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)
{ {
......
...@@ -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) */
......
...@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment