VirtualBox

Ticket #13725: PATCH_emulators_virtualbox-ose_files_patch-src-VBox-ExtPacks-VNC-VBoxVNC.cpp

File PATCH_emulators_virtualbox-ose_files_patch-src-VBox-ExtPacks-VNC-VBoxVNC.cpp, 1.2 KB (added by wonko1953, 10 years ago)

patch to src/VBox/ExtPacks/VNC/VBoxVNC.cpp

Line 
1--- ./emulators/virtualbox-ose/files/XXXpatch-src-VBox-ExtPacks-VNC-VBoxVNC.cpp.ORIG 2014-09-19 19:51:01.017198398 +0200
2+++ ./emulators/virtualbox-ose/files/patch-src-VBox-ExtPacks-VNC-VBoxVNC.cpp 2014-09-19 19:50:27.000000000 +0200
3@@ -0,0 +1,28 @@
4+--- ./src/VBox/ExtPacks/VNC/VBoxVNC.cpp.ORIG 2014-09-09 21:54:13.000000000 +0200
5++++ ./src/VBox/ExtPacks/VNC/VBoxVNC.cpp 2014-09-19 19:49:34.000000000 +0200
6+@@ -291,7 +291,12 @@
7+ &port, sizeof(port), &cbOut);
8+ Assert(cbOut <= sizeof(port));
9+ if (RT_SUCCESS(rc) && port != 0)
10++ {
11+ vncServer->port = port;
12++#if defined(LIBVNCSERVER_IPv6) && (LIBVNCSERVER_IPv6 != 0)
13++ vncServer->ipv6port = port;
14++#endif
15++ }
16+ else
17+ {
18+ const char szFeatName[] = "Property/TCP/Ports";
19+@@ -310,7 +315,12 @@
20+ if (RT_FAILURE(rc) || port >= 65535)
21+ vncServer->autoPort = 1;
22+ else
23++ {
24+ vncServer->port = port;
25++#if defined(LIBVNCSERVER_IPv6) && (LIBVNCSERVER_IPv6 != 0)
26++ vncServer->ipv6port = port;
27++#endif
28++ }
29+ }
30+ else
31+ vncServer->autoPort = 1;

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy