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
This commit is contained in:
Stefano Ceccherini
2005-04-30 07:04:45 +00:00
parent 6e927d6e3b
commit fca6492ffe
+6 -1
View File
@@ -267,7 +267,12 @@ BPrivateScreen::GetMode(uint32 workspace, display_mode *mode)
link.StartMessage(AS_SCREEN_GET_MODE); link.StartMessage(AS_SCREEN_GET_MODE);
link.Attach<screen_id>(ID()); link.Attach<screen_id>(ID());
link.Attach<uint32>(workspace); link.Attach<uint32>(workspace);
link.Flush();
int32 code = SERVER_FALSE;
link.FlushWithReply(&code);
if (code != SERVER_TRUE)
return B_ERROR;
display_mode currentMode; display_mode currentMode;
link.Read<display_mode>(&currentMode); link.Read<display_mode>(&currentMode);