summaryrefslogtreecommitdiffstats
path: root/win/winvnc/JavaViewer.cxx
diff options
context:
space:
mode:
authorDRC <dcommander@users.sourceforge.net>2011-10-12 21:30:18 +0000
committerDRC <dcommander@users.sourceforge.net>2011-10-12 21:30:18 +0000
commit11278c50dc78f3cd3701ace2614d2a74f315dd47 (patch)
tree01b1ed533e3923fa90caf91b883776ce067ae371 /win/winvnc/JavaViewer.cxx
parent7f2f25bb45ae0ec08975a7cff8a3208f29ff2583 (diff)
downloadtigervnc-11278c50dc78f3cd3701ace2614d2a74f315dd47.tar.gz
tigervnc-11278c50dc78f3cd3701ace2614d2a74f315dd47.zip
Fix Java viewer integration when building WinVNC with MinGW
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4727 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'win/winvnc/JavaViewer.cxx')
-rw-r--r--win/winvnc/JavaViewer.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/win/winvnc/JavaViewer.cxx b/win/winvnc/JavaViewer.cxx
index 39ff915a..6f9f6de5 100644
--- a/win/winvnc/JavaViewer.cxx
+++ b/win/winvnc/JavaViewer.cxx
@@ -45,6 +45,10 @@ rdr::InStream* JavaViewerServer::getFile(const char* name,
{
if (strcmp(name, "/") == 0)
name = "/index.vnc";
+ if (strcmp(name, "/VncViewer.jar") == 0)
+ name = "VncViewer.jar";
+ if (strcmp(name, "/index.vnc") == 0)
+ name = "index.vnc";
HRSRC resource = FindResource(0, TStr(name), _T("HTTPFILE"));
if (!resource) return 0;