- endianness fixed
This commit is contained in:
parent
075ee17ac9
commit
a2327441ca
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: hdimage.cc,v 1.7 2006-06-16 07:29:33 vruppert Exp $
|
||||
// $Id: hdimage.cc,v 1.8 2006-06-16 08:56:13 vruppert Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2002 MandrakeSoft S.A.
|
||||
@ -427,12 +427,12 @@ int sparse_image_t::open (const char* pathname0)
|
||||
if (parentpathname != NULL) free(parentpathname);
|
||||
|
||||
if (dtoh32(header.version) == SPARSE_HEADER_VERSION) {
|
||||
hd_size = header.disk;
|
||||
hd_size = dtoh64(header.disk);
|
||||
}
|
||||
return 0; // success.
|
||||
}
|
||||
|
||||
void sparse_image_t::close ()
|
||||
void sparse_image_t::close()
|
||||
{
|
||||
BX_DEBUG(("concat_image_t.close"));
|
||||
if (pathname != NULL)
|
||||
|
Loading…
x
Reference in New Issue
Block a user