app_server: local variable was shadowing the outer variable
In the AS_CLIP_TO_PICTURE case, the "picture" variable was shadowing the outer "picture" variable. Change-Id: I3b9de2432f93a683aaccdb899051a14ebf9b7e6e
This commit is contained in:
@@ -3699,13 +3699,13 @@ ServerWindow::_DispatchPictureMessage(int32 code, BPrivate::LinkReceiver& link)
|
|||||||
if (link.Read<bool>(&inverse) != B_OK)
|
if (link.Read<bool>(&inverse) != B_OK)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
ServerPicture* picture = fServerApp->GetPicture(pictureToken);
|
ServerPicture* pictureToClip = fServerApp->GetPicture(pictureToken);
|
||||||
if (picture == NULL)
|
if (pictureToClip == NULL)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
picture->WriteClipToPicture(picture->Token(), where, inverse);
|
picture->WriteClipToPicture(pictureToClip->Token(), where, inverse);
|
||||||
|
|
||||||
picture->ReleaseReference();
|
pictureToClip->ReleaseReference();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user