Safer code
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13275 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
55b222b0b0
commit
89d0b3cdad
@ -1935,9 +1935,14 @@ status_t ret = B_ERROR;
|
||||
|
||||
screen_id id;
|
||||
link.Read<screen_id>(&id);
|
||||
|
||||
fLink.StartMessage(SERVER_TRUE);
|
||||
fLink.Attach<color_map>(*SystemColorMap());
|
||||
|
||||
const color_map *colorMap = SystemColorMap();
|
||||
if (colorMap != NULL) {
|
||||
fLink.StartMessage(SERVER_TRUE);
|
||||
fLink.Attach<color_map>(*colorMap);
|
||||
} else
|
||||
fLink.StartMessage(SERVER_FALSE);
|
||||
|
||||
fLink.Flush();
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user