]> source.dussan.org Git - tigervnc.git/commit
Split SystemException to handle Windows 1833/head
authorPierre Ossman <ossman@cendio.se>
Tue, 10 Sep 2024 14:55:32 +0000 (16:55 +0200)
committerPierre Ossman <ossman@cendio.se>
Wed, 9 Oct 2024 11:37:08 +0000 (13:37 +0200)
commit40df30d258ebfd24a447fababc649867c24513d8
treee29c3abaac640eb1cfe951cae4ce4fe6896c8029
parent56b3460aa318b650f12833ba119fa6decb930148
Split SystemException to handle Windows

Windows has (at least) two error namespaces, both errno and
GetLastResult(). These overlap, so it is important we keep track of
which one we are dealing with.

To make things extra problematic, the BSD socket API normally uses
errno, but on Windows it has been mapped in to the GetLastResult()
namespace.

Try to keep better control of this by using separate classes for the
namespaces.
39 files changed:
common/os/Mutex.cxx
common/os/Thread.cxx
common/rdr/Exception.cxx
common/rdr/Exception.h
common/rdr/FileInStream.cxx
common/rdr/RandomStream.cxx
common/rfb/SSecurityRSAAES.cxx
vncviewer/ServerDialog.cxx
vncviewer/Surface_Win32.cxx
vncviewer/UserDialog.cxx
vncviewer/parameters.cxx
win/rfb_win32/CleanDesktop.cxx
win/rfb_win32/Clipboard.cxx
win/rfb_win32/CompatibleBitmap.h
win/rfb_win32/CurrentUser.cxx
win/rfb_win32/DIBSectionBuffer.cxx
win/rfb_win32/DeviceContext.cxx
win/rfb_win32/DeviceFrameBuffer.cxx
win/rfb_win32/Dialog.cxx
win/rfb_win32/IconInfo.h
win/rfb_win32/IntervalTimer.h
win/rfb_win32/LaunchProcess.cxx
win/rfb_win32/LocalMem.h
win/rfb_win32/MonitorInfo.cxx
win/rfb_win32/MsgWindow.cxx
win/rfb_win32/RegConfig.cxx
win/rfb_win32/Registry.cxx
win/rfb_win32/SInput.cxx
win/rfb_win32/Security.cxx
win/rfb_win32/Service.cxx
win/rfb_win32/TsSessions.cxx
win/rfb_win32/WMCursor.cxx
win/rfb_win32/WMPoller.cxx
win/rfb_win32/Win32Util.cxx
win/vncconfig/Legacy.cxx
win/vncconfig/vncconfig.cxx
win/winvnc/QueryConnectDialog.cxx
win/winvnc/VNCServerWin32.cxx
win/winvnc/winvnc.cxx