From fca6492ffe83a588000248322f0449187689bda4 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Sat, 30 Apr 2005 07:04:45 +0000 Subject: [PATCH] Finally tested the code, there were a bunch of problems: fixed them all. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12518 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/PrivateScreen.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/kits/interface/PrivateScreen.cpp b/src/kits/interface/PrivateScreen.cpp index 7207d58ee6..fa50198aba 100644 --- a/src/kits/interface/PrivateScreen.cpp +++ b/src/kits/interface/PrivateScreen.cpp @@ -267,7 +267,12 @@ BPrivateScreen::GetMode(uint32 workspace, display_mode *mode) link.StartMessage(AS_SCREEN_GET_MODE); link.Attach(ID()); link.Attach(workspace); - link.Flush(); + + int32 code = SERVER_FALSE; + link.FlushWithReply(&code); + + if (code != SERVER_TRUE) + return B_ERROR; display_mode currentMode; link.Read(¤tMode);