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
e089295f
Commit
e089295f
authored
Jan 24, 2013
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Fix wrap-around bug in tick count comparison.
parent
af734f96
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
compobj.c
dlls/ole32/compobj.c
+4
-1
No files found.
dlls/ole32/compobj.c
View file @
e089295f
...
@@ -813,14 +813,17 @@ static void apartment_freeunusedlibraries(struct apartment *apt, DWORD delay)
...
@@ -813,14 +813,17 @@ static void apartment_freeunusedlibraries(struct apartment *apt, DWORD delay)
real_delay
=
0
;
real_delay
=
0
;
}
}
if
(
!
real_delay
||
(
entry
->
unload_time
&&
(
entry
->
unload_time
<
GetTickCount
()
)))
if
(
!
real_delay
||
(
entry
->
unload_time
&&
(
(
int
)(
GetTickCount
()
-
entry
->
unload_time
)
>
0
)))
{
{
list_remove
(
&
entry
->
entry
);
list_remove
(
&
entry
->
entry
);
COMPOBJ_DllList_ReleaseRef
(
entry
->
dll
,
TRUE
);
COMPOBJ_DllList_ReleaseRef
(
entry
->
dll
,
TRUE
);
HeapFree
(
GetProcessHeap
(),
0
,
entry
);
HeapFree
(
GetProcessHeap
(),
0
,
entry
);
}
}
else
else
{
entry
->
unload_time
=
GetTickCount
()
+
real_delay
;
entry
->
unload_time
=
GetTickCount
()
+
real_delay
;
if
(
!
entry
->
unload_time
)
entry
->
unload_time
=
1
;
}
}
}
else
if
(
entry
->
unload_time
)
else
if
(
entry
->
unload_time
)
entry
->
unload_time
=
0
;
entry
->
unload_time
=
0
;
...
...
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