Fix build

Remove a NULL pointer reference in debug code


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10883 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
DarkWyrm 2005-01-19 17:35:17 +00:00
parent 17351b0417
commit 4e9042b685
2 changed files with 4 additions and 3 deletions

View File

@ -78,6 +78,6 @@ LINKFLAGS on app_server += -lbe ;
LinkSharedOSLibs app_server : root game translation libz.so libpng.so libappserver.so
<boot!home!config!lib>libopenbeos.so
<boot!home!config!lib>libfreetype.so ;
libfreetype.so ;
SubInclude OBOS_TOP src servers app server fonts ;

View File

@ -686,7 +686,7 @@ void ServerWindow::DispatchMessage(int32 code, LinkMsgReader &link)
{
if (cl == NULL && code != AS_LAYER_CREATE_ROOT)
{
printf("ServerWindow %s received unexpected code - message offset %lx before top_view attached.\n",fTitle.String(), code - SERVER_TRUE);
printf("ServerWindow %s received unexpected code - message offset %ld before top_view attached.\n",fTitle.String(), code - SERVER_TRUE);
return;
}
@ -808,7 +808,8 @@ void ServerWindow::DispatchMessage(int32 code, LinkMsgReader &link)
case AS_LAYER_CREATE_ROOT:
{
STRACE(("ServerWindow %s: Message AS_LAYER_CREATE_ROOT: Layer name: %s\n", fTitle.String(), cl->fName->String()));
STRACE(("ServerWindow %s: Message AS_LAYER_CREATE_ROOT\n", fTitle.String()));
// Start receiving top_view data -- pass NULL as the parent view.
// This should be the *only* place where this happens.
if (cl != NULL)