From: Constantin Kaplinsky Date: Sat, 20 May 2006 06:07:28 +0000 (+0000) Subject: Merged the changes from branch/merge-with-vnc-4.1.1, revisions 564:565. X-Git-Tag: v0.0.90~384^2~305 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2947916af4cdf45c2d744d9673769273b7089542;p=tigervnc.git Merged the changes from branch/merge-with-vnc-4.1.1, revisions 564:565. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@567 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- diff --git a/rfbplayer/FbsInputStream.cxx b/rfbplayer/FbsInputStream.cxx index 539a0b5e..6381a166 100644 --- a/rfbplayer/FbsInputStream.cxx +++ b/rfbplayer/FbsInputStream.cxx @@ -46,7 +46,7 @@ FbsInputStream::FbsInputStream(char* FileName) { throw rfb::Exception(msg); } - byte b[12]; + U8 b[12]; readNByte(b, 12); if (b[0] != 'F' || b[1] != 'B' || b[2] != 'S' || b[3] != ' ' || @@ -114,7 +114,7 @@ int FbsInputStream::overrun(int itemSize, int nItems, bool wait=true) { if (start != NULL) delete [] start; int realSize = (bufferSize + 3) & 0xFFFFFFFC; // padding to multiple of 32-bits - ptr = start = new byte[realSize + n]; + ptr = start = new U8[realSize + n]; end = ptr + bufferSize + n; if (n) { memmove(start, tmp, n); @@ -158,7 +158,7 @@ int FbsInputStream::overrun(int itemSize, int nItems, bool wait=true) { } int FbsInputStream::readUnsigned32() { - byte buf[4]; + U8 buf[4]; if (!readNByte(buf, 4)) return -1; @@ -172,7 +172,7 @@ int FbsInputStream::readUnsigned32() { // Read n-bytes from the session file // -bool FbsInputStream::readNByte(byte b[], int n) { +bool FbsInputStream::readNByte(U8 b[], int n) { int off = 0; while (off != n) { diff --git a/rfbplayer/rfbplayer.cxx b/rfbplayer/rfbplayer.cxx index 0a928022..b304aece 100644 --- a/rfbplayer/rfbplayer.cxx +++ b/rfbplayer/rfbplayer.cxx @@ -17,18 +17,24 @@ */ // -=- RFB Player for Win32 - #include +#include +#include + +#include #include +#include +#include #include +#include #include #include #include #include #include - + using namespace rfb; using namespace rfb::win32;