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
a255783e
Commit
a255783e
authored
Oct 11, 2006
by
runge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
N_ENC_CAPS check does not work if libz is not present.
parent
e6152298
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
rfbtightserver.c
libvncserver/tightvnc-filetransfer/rfbtightserver.c
+4
-2
No files found.
libvncserver/tightvnc-filetransfer/rfbtightserver.c
View file @
a255783e
...
...
@@ -237,7 +237,7 @@ rfbSendInteractionCaps(rfbClientPtr cl)
rfbCapabilityInfo
smsg_list
[
N_SMSG_CAPS
];
rfbCapabilityInfo
cmsg_list
[
N_CMSG_CAPS
];
rfbCapabilityInfo
enc_list
[
N_ENC_CAPS
];
int
i
;
int
i
,
n_enc_caps
=
N_ENC_CAPS
;
/* Fill in the header structure sent prior to capability lists. */
intr_caps
.
nServerMessageTypes
=
Swap16IfLE
(
N_SMSG_CAPS
);
...
...
@@ -286,6 +286,8 @@ rfbSendInteractionCaps(rfbClientPtr cl)
#ifdef LIBVNCSERVER_HAVE_LIBZ
SetCapInfo
(
&
enc_list
[
i
++
],
rfbEncodingZlib
,
rfbTridiaVncVendor
);
SetCapInfo
(
&
enc_list
[
i
++
],
rfbEncodingTight
,
rfbTightVncVendor
);
#else
n_enc_caps
-=
2
;
#endif
SetCapInfo
(
&
enc_list
[
i
++
],
rfbEncodingCompressLevel0
,
rfbTightVncVendor
);
SetCapInfo
(
&
enc_list
[
i
++
],
rfbEncodingQualityLevel0
,
rfbTightVncVendor
);
...
...
@@ -293,7 +295,7 @@ rfbSendInteractionCaps(rfbClientPtr cl)
SetCapInfo
(
&
enc_list
[
i
++
],
rfbEncodingRichCursor
,
rfbTightVncVendor
);
SetCapInfo
(
&
enc_list
[
i
++
],
rfbEncodingPointerPos
,
rfbTightVncVendor
);
SetCapInfo
(
&
enc_list
[
i
++
],
rfbEncodingLastRect
,
rfbTightVncVendor
);
if
(
i
!=
N_ENC_CAPS
)
{
if
(
i
!=
n_enc_caps
)
{
rfbLog
(
"rfbSendInteractionCaps: assertion failed, i != N_ENC_CAPS
\n
"
);
rfbCloseClient
(
cl
);
return
;
...
...
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