Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
libvncserver
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rasky
libvncserver
Commits
f40b0111
Commit
f40b0111
authored
Dec 02, 2009
by
runge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add locks of updateMutex in rfbRedrawAfterHideCursor() and
rfbSetClientColourMap(). Up listen limit from 5 to 32.
parent
a8453eea
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
cursor.c
libvncserver/cursor.c
+5
-2
sockets.c
libvncserver/sockets.c
+1
-1
translate.c
libvncserver/translate.c
+2
-0
No files found.
libvncserver/cursor.c
View file @
f40b0111
...
...
@@ -693,10 +693,13 @@ void rfbRedrawAfterHideCursor(rfbClientPtr cl,sraRegionPtr updateRegion)
if
(
sraClipRect2
(
&
x
,
&
y
,
&
x2
,
&
y2
,
0
,
0
,
s
->
width
,
s
->
height
))
{
sraRegionPtr
rect
;
rect
=
sraRgnCreateRect
(
x
,
y
,
x2
,
y2
);
if
(
updateRegion
)
if
(
updateRegion
)
{
sraRgnOr
(
updateRegion
,
rect
);
else
}
else
{
LOCK
(
cl
->
updateMutex
);
sraRgnOr
(
cl
->
modifiedRegion
,
rect
);
UNLOCK
(
cl
->
updateMutex
);
}
sraRgnDestroy
(
rect
);
}
}
...
...
libvncserver/sockets.c
View file @
f40b0111
...
...
@@ -638,7 +638,7 @@ rfbListenOnTCPPort(int port,
closesocket
(
sock
);
return
-
1
;
}
if
(
listen
(
sock
,
5
)
<
0
)
{
if
(
listen
(
sock
,
32
)
<
0
)
{
closesocket
(
sock
);
return
-
1
;
}
...
...
libvncserver/translate.c
View file @
f40b0111
...
...
@@ -423,6 +423,7 @@ rfbSetClientColourMap(rfbClientPtr cl, int firstColour, int nColours)
}
if
(
cl
->
format
.
trueColour
)
{
LOCK
(
cl
->
updateMutex
);
(
*
rfbInitColourMapSingleTableFns
[
BPP2OFFSET
(
cl
->
format
.
bitsPerPixel
)])
(
&
cl
->
translateLookupTable
,
&
cl
->
screen
->
serverFormat
,
&
cl
->
format
,
&
cl
->
screen
->
colourMap
);
...
...
@@ -430,6 +431,7 @@ rfbSetClientColourMap(rfbClientPtr cl, int firstColour, int nColours)
sraRgnDestroy
(
cl
->
modifiedRegion
);
cl
->
modifiedRegion
=
sraRgnCreateRect
(
0
,
0
,
cl
->
screen
->
width
,
cl
->
screen
->
height
);
UNLOCK
(
cl
->
updateMutex
);
return
TRUE
;
}
...
...
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