dtmail: Fix XtVaGetValues() return value storage

At least one crash was caused by this
on the 64-bit system
This commit is contained in:
Marcin Cieslak
2012-09-24 13:36:14 +02:00
committed by Jon Trulson
parent 3a246dfb9b
commit 91bfe1e4dc
8 changed files with 48 additions and 33 deletions

View File

@@ -111,10 +111,13 @@ void
MenuWindow::getIconColors(Pixel & fore, Pixel & back)
{
if (_menuBar) {
XtArgVal fore0, back0;
XtVaGetValues (_menuBar->baseWidget(),
XmNforeground, &fore,
XmNbackground, &back,
XmNforeground, &fore0,
XmNbackground, &back0,
NULL);
fore = (Pixel) fore0;
back = (Pixel) back0;
}
else {
MainWindow::getIconColors(fore, back);