Missing pointer dereferencing.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14868 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
bfe7d52d7b
commit
e4a5c29b25
@ -556,7 +556,7 @@ cd_ioctl(cd_handle_info *handle, int op, void *buf, size_t len)
|
||||
case B_GET_DEVICE_SIZE:
|
||||
res = update_capacity(device);
|
||||
if (res == B_OK)
|
||||
(size_t *)buf = device->capacity * device->block_size;
|
||||
*(size_t *)buf = device->capacity * device->block_size;
|
||||
break;
|
||||
|
||||
case B_GET_GEOMETRY:
|
||||
|
@ -193,7 +193,7 @@ das_ioctl(das_handle_info *handle, int op, void *buf, size_t len)
|
||||
case B_GET_DEVICE_SIZE:
|
||||
res = update_capacity(device);
|
||||
if (res == B_OK)
|
||||
(size_t *)buf = device->capacity * device->block_size;
|
||||
*(size_t *)buf = device->capacity * device->block_size;
|
||||
break;
|
||||
|
||||
case B_GET_GEOMETRY:
|
||||
|
Loading…
Reference in New Issue
Block a user