Commit dddb21d1 authored by claes's avatar claes

Bugfix, attribute instead of object in IoConnect could cause segfault

parent a5ce5a30
/* /*
* Proview $Id: xtt_menu.cpp,v 1.13 2007-01-17 06:19:57 claes Exp $ * Proview $Id: xtt_menu.cpp,v 1.14 2007-10-31 11:54:48 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB. * Copyright (C) 2005 SSAB Oxelsund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -285,6 +285,10 @@ int XNav::GetObjectMenu( xmenu_sMenuCall *ip, ...@@ -285,6 +285,10 @@ int XNav::GetObjectMenu( xmenu_sMenuCall *ip,
pwr_sAttrRef currentar = pwr_cNAttrRef; pwr_sAttrRef currentar = pwr_cNAttrRef;
pwr_tCid supercid; pwr_tCid supercid;
if ( !cdh_tidIsCid( classid))
return XNAV__SUCCESS;
if ( cdh_ObjidIsNotNull( CurrentObject->Objid)) if ( cdh_ObjidIsNotNull( CurrentObject->Objid))
currentar = *CurrentObject; currentar = *CurrentObject;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment