From 11278c50dc78f3cd3701ace2614d2a74f315dd47 Mon Sep 17 00:00:00 2001 From: DRC Date: Wed, 12 Oct 2011 21:30:18 +0000 Subject: 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 --- win/winvnc/JavaViewer.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'win/winvnc/JavaViewer.cxx') 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; -- cgit v1.2.3