Commit d9109290 authored by claes's avatar claes

MountVolume caused assert if volid was missing

parent 8e2c4152
/* /*
* Proview $Id: rt_ivol.c,v 1.7 2005-09-01 14:57:55 claes Exp $ * Proview $Id: rt_ivol.c,v 1.8 2005-10-12 13:00:42 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
...@@ -287,6 +287,10 @@ mountVolume ( ...@@ -287,6 +287,10 @@ mountVolume (
break; break;
case pwr_eClass_MountVolume: case pwr_eClass_MountVolume:
soid.vid = ((pwr_sMountVolume *)p)->Volume; soid.vid = ((pwr_sMountVolume *)p)->Volume;
if ( soid.vid == 0) {
*sts = GDH__NOMOUNTOBJECT;
return NULL;
}
vp = vol_MountVolume(sts, soid.vid); vp = vol_MountVolume(sts, soid.vid);
break; break;
case pwr_eClass_CreateVolume: case pwr_eClass_CreateVolume:
......
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