Ignore gdi_resize if not initialized.
authorArmin Novak <armin.novak@thincast.com>
Thu, 20 Jul 2017 10:33:56 +0000 (12:33 +0200)
committerArmin Novak <armin.novak@thincast.com>
Thu, 20 Jul 2017 10:33:56 +0000 (12:33 +0200)
client/Mac/MRDPView.m

index a8c5805..5080f43 100644 (file)
@@ -1231,6 +1231,10 @@ BOOL mac_desktop_resize(rdpContext* context)
        mfContext* mfc = (mfContext*) context;
        MRDPView* view = (MRDPView*) mfc->view;
        rdpSettings* settings = context->settings;
+
+       if (!context->gdi)
+               return TRUE;
+
        /**
         * TODO: Fix resizing race condition. We should probably implement a message to be
         * put on the update message queue to be able to properly flush pending updates,