Commit 896fb2db authored by claes's avatar claes

gdh_GetAttrrefTid more forgiving for strange attrrefs

parent ef9ed823
/* /*
* Proview $Id: rt_gdh.c,v 1.26 2006-04-06 04:54:53 claes Exp $ * Proview $Id: rt_gdh.c,v 1.27 2006-09-06 12:36:35 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
...@@ -933,7 +933,8 @@ gdh_GetAttrRefTid ( ...@@ -933,7 +933,8 @@ gdh_GetAttrRefTid (
*tid = arp->Body & ~7; *tid = arp->Body & ~7;
return GDH__SUCCESS; return GDH__SUCCESS;
} }
if ( arp->Body == 0 && arp->Offset == 0) if ( (arp->Body == 0 && arp->Offset == 0) ||
(arp->Offset == 0 && arp->Size == 0))
return gdh_GetObjectClass( arp->Objid, tid); return gdh_GetObjectClass( arp->Objid, tid);
gdh_ScopeLock { gdh_ScopeLock {
......
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