Apply patch: ncpfs-hg-commit-431.patch
This commit is contained in:
@@ -339,12 +339,12 @@ NWDSCCODE NWDSGetPartitionExtInfoPtr(
|
||||
}
|
||||
fields = partitions->dsiFlags;
|
||||
if (fields & DSP_OUTPUT_FIELDS) {
|
||||
*infoPtr = partitions->curPos;
|
||||
*infoPtr = (char*)partitions->curPos;
|
||||
dserr = NWDSBufGetLE32(partitions, &fields);
|
||||
if (dserr)
|
||||
return dserr;
|
||||
} else {
|
||||
*infoPtr = partitions->curPos - 4;
|
||||
*infoPtr = (char*)partitions->curPos - 4;
|
||||
DSET_LH(partitions->curPos - 4, 0, fields);
|
||||
}
|
||||
if (fields & DSP_PARTITION_ID)
|
||||
@@ -372,7 +372,7 @@ NWDSCCODE NWDSGetPartitionExtInfoPtr(
|
||||
return NWE_PARAM_INVALID;
|
||||
if (partitions->curPos > partitions->dataend)
|
||||
return ERR_BUFFER_EMPTY;
|
||||
*infoPtrEnd = partitions->curPos;
|
||||
*infoPtrEnd = (char*)partitions->curPos;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user