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:
JackBurton79
2018-09-10 12:45:21 +02:00
parent 7f644d106d
commit d1311300dc
+4 -4
View File
@@ -3699,13 +3699,13 @@ ServerWindow::_DispatchPictureMessage(int32 code, BPrivate::LinkReceiver& link)
if (link.Read<bool>(&inverse) != B_OK)
break;
ServerPicture* picture = fServerApp->GetPicture(pictureToken);
if (picture == NULL)
ServerPicture* pictureToClip = fServerApp->GetPicture(pictureToken);
if (pictureToClip == NULL)
break;
picture->WriteClipToPicture(picture->Token(), where, inverse);
picture->WriteClipToPicture(pictureToClip->Token(), where, inverse);
picture->ReleaseReference();
pictureToClip->ReleaseReference();
break;
}