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
a04b77dd
Commit
a04b77dd
authored
Aug 08, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Aug 08, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gcc 4.0 warning fixes.
parent
90c75bdd
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
11 deletions
+11
-11
safearray.c
dlls/oleaut32/safearray.c
+4
-4
tmarshal.c
dlls/oleaut32/tmarshal.c
+4
-4
typelib.c
dlls/oleaut32/typelib.c
+2
-2
typelib2.c
dlls/oleaut32/typelib2.c
+1
-1
No files found.
dlls/oleaut32/safearray.c
View file @
a04b77dd
...
...
@@ -789,12 +789,12 @@ HRESULT WINAPI SafeArrayLock(SAFEARRAY *psa)
if
(
!
psa
)
return
E_INVALIDARG
;
ulLocks
=
InterlockedIncrement
(
&
psa
->
cLocks
);
ulLocks
=
InterlockedIncrement
(
(
LONG
*
)
&
psa
->
cLocks
);
if
(
ulLocks
>
0xffff
)
/* Maximum of 16384 locks at a time */
{
WARN
(
"Out of locks!
\n
"
);
InterlockedDecrement
(
&
psa
->
cLocks
);
InterlockedDecrement
(
(
LONG
*
)
&
psa
->
cLocks
);
return
E_UNEXPECTED
;
}
return
S_OK
;
...
...
@@ -823,10 +823,10 @@ HRESULT WINAPI SafeArrayUnlock(SAFEARRAY *psa)
if
(
!
psa
)
return
E_INVALIDARG
;
if
((
LONG
)
InterlockedDecrement
(
&
psa
->
cLocks
)
<
0
)
if
((
LONG
)
InterlockedDecrement
(
(
LONG
*
)
&
psa
->
cLocks
)
<
0
)
{
WARN
(
"Unlocked but no lock held!
\n
"
);
InterlockedIncrement
(
&
psa
->
cLocks
);
InterlockedIncrement
(
(
LONG
*
)
&
psa
->
cLocks
);
return
E_UNEXPECTED
;
}
return
S_OK
;
...
...
dlls/oleaut32/tmarshal.c
View file @
a04b77dd
...
...
@@ -556,7 +556,7 @@ serialize_param(
if
(
hres
)
return
hres
;
}
/* need to recurse since we need to free the stuff */
hres
=
serialize_param
(
tinfo
,
writeit
,
debugout
,
dealloc
,
&
tdesc2
,
&
(
V_I4
(
vt
)),
buf
);
hres
=
serialize_param
(
tinfo
,
writeit
,
debugout
,
dealloc
,
&
tdesc2
,
(
DWORD
*
)
&
(
V_I4
(
vt
)),
buf
);
if
(
debugout
)
TRACE_
(
olerelay
)(
")"
);
return
hres
;
}
...
...
@@ -1077,7 +1077,7 @@ deserialize_param(
tdesc2
.
vt
=
vttype
;
V_VT
(
vt
)
=
vttype
;
if
(
debugout
)
TRACE_
(
olerelay
)(
"Vt(%ld)("
,
vttype
);
hres
=
deserialize_param
(
tinfo
,
readit
,
debugout
,
alloc
,
&
tdesc2
,
&
(
V_I4
(
vt
)),
buf
);
hres
=
deserialize_param
(
tinfo
,
readit
,
debugout
,
alloc
,
&
tdesc2
,
(
DWORD
*
)
&
(
V_I4
(
vt
)),
buf
);
TRACE_
(
olerelay
)(
")"
);
return
hres
;
}
else
{
...
...
@@ -1526,7 +1526,7 @@ xCall(LPVOID retptr, int method, TMProxyImpl *tpinfo /*, args */)
ULONG
status
;
BSTR
fname
,
iname
;
BSTR
names
[
10
];
int
nrofnames
;
UINT
nrofnames
;
int
is_idispatch_getidsofnames
=
0
;
DWORD
remoteresult
=
0
;
ITypeInfo
*
tinfo
;
...
...
@@ -2016,7 +2016,7 @@ TMStubImpl_Invoke(
HRESULT
hres
;
DWORD
*
args
,
res
,
*
xargs
,
nrofargs
;
marshal_state
buf
;
int
nrofnames
;
UINT
nrofnames
;
BSTR
names
[
10
];
BSTR
fname
=
NULL
,
iname
=
NULL
;
BOOL
is_idispatch_getidsofnames
=
0
;
...
...
dlls/oleaut32/typelib.c
View file @
a04b77dd
...
...
@@ -247,7 +247,7 @@ HRESULT WINAPI QueryPathOfRegTypeLib(
while
(
hr
!=
S_OK
)
{
DWORD
dwPathLen
=
sizeof
(
Path
);
LONG
dwPathLen
=
sizeof
(
Path
);
get_lcid_subkey
(
myLCID
,
SYS_WIN32
,
buffer
);
...
...
@@ -5215,7 +5215,7 @@ static HRESULT WINAPI ITypeInfo_fnGetRefTypeInfo(
ITypeLib
*
pTLib
=
NULL
;
if
(
pRefType
->
pImpTLInfo
==
TLB_REF_INTERNAL
)
{
int
Index
;
UINT
Index
;
result
=
ITypeInfo_GetContainingTypeLib
(
iface
,
&
pTLib
,
&
Index
);
}
else
{
if
(
pRefType
->
pImpTLInfo
->
pImpTypeLib
)
{
...
...
dlls/oleaut32/typelib2.c
View file @
a04b77dd
...
...
@@ -1332,7 +1332,7 @@ static HRESULT WINAPI ICreateTypeInfo2_fnAddRefTypeInfo(
ICreateTypeInfo2Impl
*
This
=
(
ICreateTypeInfo2Impl
*
)
iface
;
ITypeLib
*
container
;
int
index
;
UINT
index
;
HRESULT
res
;
TRACE
(
"(%p,%p,%p)
\n
"
,
iface
,
pTInfo
,
phRefType
);
...
...
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