mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
dtwm: Coverity 87236
This commit is contained in:
parent
77efde3456
commit
c3aac3cc26
1 changed files with 3 additions and 3 deletions
|
@ -382,7 +382,7 @@ void ShowFeedbackWindow (WmScreenData *pSD, int x, int y, unsigned int width, un
|
|||
* Make the feedback window visible (map it)
|
||||
*/
|
||||
|
||||
if (pSD->feedbackWin)
|
||||
if (pSD && pSD->feedbackWin)
|
||||
{
|
||||
/* Make sure the feedback window doesn't get buried */
|
||||
XRaiseWindow(DISPLAY, pSD->feedbackWin);
|
||||
|
@ -422,13 +422,13 @@ void PaintFeedbackWindow (WmScreenData *pSD)
|
|||
/*
|
||||
* draw beveling
|
||||
*/
|
||||
if (pSD->fbTop->used > 0)
|
||||
if (pSD->fbTop && pSD->fbTop->used > 0)
|
||||
{
|
||||
XFillRectangles (DISPLAY, pSD->feedbackWin,
|
||||
pSD->feedbackAppearance.inactiveTopShadowGC,
|
||||
pSD->fbTop->prect, pSD->fbTop->used);
|
||||
}
|
||||
if (pSD->fbBottom->used > 0)
|
||||
if (pSD->fbBottom && pSD->fbBottom->used > 0)
|
||||
{
|
||||
XFillRectangles (DISPLAY, pSD->feedbackWin,
|
||||
pSD->feedbackAppearance.inactiveBottomShadowGC,
|
||||
|
|
Loading…
Reference in a new issue