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
0f82f687
Commit
0f82f687
authored
May 10, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
May 10, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Avoid using long.
parent
481aca47
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
typelib.c
dlls/oleaut32/typelib.c
+10
-10
vartype.c
dlls/oleaut32/vartype.c
+2
-2
No files found.
dlls/oleaut32/typelib.c
View file @
0f82f687
...
...
@@ -1519,7 +1519,7 @@ static inline unsigned int MSFT_Tell(const TLBContext *pcx)
return
pcx
->
pos
;
}
static
inline
void
MSFT_Seek
(
TLBContext
*
pcx
,
long
where
)
static
inline
void
MSFT_Seek
(
TLBContext
*
pcx
,
LONG
where
)
{
if
(
where
!=
DO_NOT_SEEK
)
{
...
...
@@ -1527,7 +1527,7 @@ static inline void MSFT_Seek(TLBContext *pcx, long where)
if
(
where
>
pcx
->
length
)
{
/* FIXME */
ERR
(
"seek beyond end (%
l
d/%d)
\n
"
,
where
,
pcx
->
length
);
ERR
(
"seek beyond end (%d/%d)
\n
"
,
where
,
pcx
->
length
);
TLB_abort
();
}
pcx
->
pos
=
where
;
...
...
@@ -1535,9 +1535,9 @@ static inline void MSFT_Seek(TLBContext *pcx, long where)
}
/* read function */
static
DWORD
MSFT_Read
(
void
*
buffer
,
DWORD
count
,
TLBContext
*
pcx
,
long
where
)
static
DWORD
MSFT_Read
(
void
*
buffer
,
DWORD
count
,
TLBContext
*
pcx
,
LONG
where
)
{
TRACE_
(
typelib
)(
"pos=0x%08x len=0x%08x 0x%08x 0x%08x 0x%08
l
x
\n
"
,
TRACE_
(
typelib
)(
"pos=0x%08x len=0x%08x 0x%08x 0x%08x 0x%08x
\n
"
,
pcx
->
pos
,
count
,
pcx
->
oStart
,
pcx
->
length
,
where
);
MSFT_Seek
(
pcx
,
where
);
...
...
@@ -1548,7 +1548,7 @@ static DWORD MSFT_Read(void *buffer, DWORD count, TLBContext *pcx, long where )
}
static
DWORD
MSFT_ReadLEDWords
(
void
*
buffer
,
DWORD
count
,
TLBContext
*
pcx
,
long
where
)
LONG
where
)
{
DWORD
ret
;
...
...
@@ -1559,7 +1559,7 @@ static DWORD MSFT_ReadLEDWords(void *buffer, DWORD count, TLBContext *pcx,
}
static
DWORD
MSFT_ReadLEWords
(
void
*
buffer
,
DWORD
count
,
TLBContext
*
pcx
,
long
where
)
LONG
where
)
{
DWORD
ret
;
...
...
@@ -2714,7 +2714,7 @@ static HRESULT TLB_ReadTypeLib(LPCWSTR pszFileName, LPWSTR pszPath, UINT cchPath
if
(
index_str
&&
*++
index_str
!=
'\0'
)
{
LPWSTR
end_ptr
;
long
idx
=
strtolW
(
index_str
,
&
end_ptr
,
10
);
LONG
idx
=
strtolW
(
index_str
,
&
end_ptr
,
10
);
if
(
*
end_ptr
==
'\0'
)
{
int
str_len
=
index_str
-
pszFileName
-
1
;
...
...
@@ -2834,7 +2834,7 @@ static ITypeLibImpl* TypeLibImpl_Constructor(void)
static
ITypeLib2
*
ITypeLib2_Constructor_MSFT
(
LPVOID
pLib
,
DWORD
dwTLBLength
)
{
TLBContext
cx
;
long
lPSegDir
;
LONG
lPSegDir
;
MSFT_Header
tlbHeader
;
MSFT_SegDir
tlbSegDir
;
ITypeLibImpl
*
pTypeLibImpl
;
...
...
@@ -2867,14 +2867,14 @@ static ITypeLib2* ITypeLib2_Constructor_MSFT(LPVOID pLib, DWORD dwTLBLength)
lPSegDir
=
sizeof
(
tlbHeader
)
+
(
tlbHeader
.
nrtypeinfos
)
*
4
+
((
tlbHeader
.
varflags
&
HELPDLLFLAG
)
?
4
:
0
);
/* now read the segment directory */
TRACE
(
"read segment directory (at %
l
d)
\n
"
,
lPSegDir
);
TRACE
(
"read segment directory (at %d)
\n
"
,
lPSegDir
);
MSFT_ReadLEDWords
(
&
tlbSegDir
,
sizeof
(
tlbSegDir
),
&
cx
,
lPSegDir
);
cx
.
pTblDir
=
&
tlbSegDir
;
/* just check two entries */
if
(
tlbSegDir
.
pTypeInfoTab
.
res0c
!=
0x0F
||
tlbSegDir
.
pImpInfo
.
res0c
!=
0x0F
)
{
ERR
(
"cannot find the table directory, ptr=0x%
l
x
\n
"
,
lPSegDir
);
ERR
(
"cannot find the table directory, ptr=0x%x
\n
"
,
lPSegDir
);
HeapFree
(
GetProcessHeap
(),
0
,
pTypeLibImpl
);
return
NULL
;
}
...
...
dlls/oleaut32/vartype.c
View file @
0f82f687
...
...
@@ -5368,7 +5368,7 @@ typedef union
{
struct
{
unsigned
long
m
:
23
;
unsigned
int
m
:
23
;
unsigned
int
exp_bias
:
8
;
unsigned
int
sign
:
1
;
}
i
;
...
...
@@ -5427,7 +5427,7 @@ typedef union
{
struct
{
unsigned
long
m_lo
:
32
;
/* 52 bits of precision */
unsigned
int
m_lo
:
32
;
/* 52 bits of precision */
unsigned
int
m_hi
:
20
;
unsigned
int
exp_bias
:
11
;
/* bias == 1023 */
unsigned
int
sign
:
1
;
...
...
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