From aacfe3e5deb590affef07eb6dd0830a1130c20c2 Mon Sep 17 00:00:00 2001 From: Marcin Cieslak Date: Tue, 2 Oct 2012 18:03:41 +0200 Subject: [PATCH] dtfile: Fix crash when trying to open filter dialog On 64-bit machine dtfile crashes when opening list of file types to filter in Encaps.c: _DtShowDialog (parent=0x805c80900, map_parent=0x0, top_rec=0x805ce3600, dialog_data=0x805db25e0, change_proc=0x4489f0 , change_data=0x805ce3600, close_proc=0x4489c0 , close_data=0x805ce3600, workspaces=0x0, iconify_state=0 '\0', ignoreCache=0 '\0', title=0x0, classHints=0x0) at Encaps.c:531 531 ResetFlag(NULL,fr->close); --- cde/programs/dtfile/FileDialog.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cde/programs/dtfile/FileDialog.c b/cde/programs/dtfile/FileDialog.c index 6795f77c..406afc1e 100644 --- a/cde/programs/dtfile/FileDialog.c +++ b/cde/programs/dtfile/FileDialog.c @@ -2878,9 +2878,11 @@ ResetFlag( Widget w) { Arg args[2]; + XtArgVal flag0; int flag; - XtSetArg (args[0], XmNuserData, &flag); + XtSetArg (args[0], XmNuserData, &flag0); XtGetValues(w,args,1); + flag = (int)flag0; if(flag != FLAG_SET) return; flag = FLAG_RESET; -- 2.25.1