Make vxDevWriteProbe() actually do a write - Mantis #280.

This commit is contained in:
Andrew Johnson
2007-01-09 00:21:43 +00:00
parent 6fb7d5255b
commit 9e2c64ecfd

View File

@@ -285,9 +285,6 @@ static long vxDevReadProbe (unsigned wordSize, volatile const void *ptr, void *p
{
long status;
/*
* this global variable exists in the nivxi library
*/
status = vxMemProbe ((char *)ptr, VX_READ, wordSize, (char *) pValue);
if (status!=OK) {
return S_dev_noDevice;
@@ -304,10 +301,7 @@ static long vxDevWriteProbe (unsigned wordSize, volatile void *ptr, const void *
{
long status;
/*
* this global variable exists in the nivxi library
*/
status = vxMemProbe ((char *)ptr, VX_READ, wordSize, (char *) pValue);
status = vxMemProbe ((char *)ptr, VX_WRITE, wordSize, (char *) pValue);
if (status!=OK) {
return S_dev_noDevice;
}