dtmail: Fix XtVaGetValues() return value storage
At least one crash was caused by this on the 64-bit system
This commit is contained in:
committed by
Jon Trulson
parent
3a246dfb9b
commit
91bfe1e4dc
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user