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
69e7d31c
Commit
69e7d31c
authored
Feb 22, 2005
by
Jon Griffiths
Committed by
Alexandre Julliard
Feb 22, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix race in IMAPIProp_Release(), -W fixes.
parent
3d9ba614
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
prop.c
dlls/mapi32/prop.c
+10
-7
No files found.
dlls/mapi32/prop.c
View file @
69e7d31c
...
...
@@ -795,7 +795,8 @@ SCODE WINAPI ScCopyProps(int cValues, LPSPropValue lpProps, LPVOID lpDst, ULONG
{
LPSPropValue
lpDest
=
(
LPSPropValue
)
lpDst
;
char
*
lpDataDest
=
(
char
*
)(
lpDest
+
cValues
);
ULONG
ulLen
,
i
,
iter
;
ULONG
ulLen
,
i
;
int
iter
;
TRACE
(
"(%d,%p,%p,%p)
\n
"
,
cValues
,
lpProps
,
lpDst
,
lpCount
);
...
...
@@ -930,7 +931,8 @@ SCODE WINAPI ScRelocProps(int cValues, LPSPropValue lpProps, LPVOID lpOld,
static
const
BOOL
bBadPtr
=
TRUE
;
/* Windows bug - Assumes source is bad */
LPSPropValue
lpDest
=
(
LPSPropValue
)
lpProps
;
ULONG
ulCount
=
cValues
*
sizeof
(
SPropValue
);
ULONG
ulLen
,
i
,
iter
;
ULONG
ulLen
,
i
;
int
iter
;
TRACE
(
"(%d,%p,%p,%p,%p)
\n
"
,
cValues
,
lpProps
,
lpOld
,
lpNew
,
lpCount
);
...
...
@@ -1520,7 +1522,7 @@ static inline ULONG WINAPI IMAPIProp_fnAddRef(LPMAPIPROP iface)
{
IPropDataImpl
*
This
=
(
IPropDataImpl
*
)
iface
;
TRACE
(
"(%p)->(count
=%ld
)
\n
"
,
This
,
This
->
lRef
);
TRACE
(
"(%p)->(count
before=%lu
)
\n
"
,
This
,
This
->
lRef
);
return
InterlockedIncrement
(
&
This
->
lRef
);
}
...
...
@@ -1534,10 +1536,12 @@ static inline ULONG WINAPI IMAPIProp_fnAddRef(LPMAPIPROP iface)
static
inline
ULONG
WINAPI
IMAPIProp_fnRelease
(
LPMAPIPROP
iface
)
{
IPropDataImpl
*
This
=
(
IPropDataImpl
*
)
iface
;
LONG
lRef
;
TRACE
(
"(%p)->(
)
\n
"
,
This
);
TRACE
(
"(%p)->(
count before=%lu)
\n
"
,
This
,
This
->
lRef
);
if
(
!
InterlockedDecrement
(
&
This
->
lRef
))
lRef
=
InterlockedDecrement
(
&
This
->
lRef
);
if
(
!
lRef
)
{
TRACE
(
"Destroying IPropData (%p)
\n
"
,
This
);
...
...
@@ -1552,9 +1556,8 @@ static inline ULONG WINAPI IMAPIProp_fnRelease(LPMAPIPROP iface)
}
RtlDeleteCriticalSection
(
&
This
->
cs
);
This
->
lpFree
(
This
);
return
0U
;
}
return
(
ULONG
)
This
->
lRef
;
return
(
ULONG
)
lRef
;
}
/**************************************************************************
...
...
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