mirror of
https://github.com/winfsp/winfsp.git
synced 2025-06-07 20:42:09 -05:00
Let the Status argument be a signed integer.
The constants are defined as negative numbers, which would have required a cast to unsigned for each call.
This commit is contained in:
parent
1d619e0874
commit
af7e5432a7
@ -403,7 +403,7 @@ namespace Fsp
|
|||||||
/// <param name="FileInfo">
|
/// <param name="FileInfo">
|
||||||
/// Updated file information.
|
/// Updated file information.
|
||||||
/// </param>
|
/// </param>
|
||||||
public void SendWriteResponse(UInt64 RequestHint, UInt32 Status, UInt32 BytesTransferred, ref FileInfo FileInfo)
|
public void SendWriteResponse(UInt64 RequestHint, Int32 Status, UInt32 BytesTransferred, ref FileInfo FileInfo)
|
||||||
{
|
{
|
||||||
var Response = new FspFsctlTransactRsp()
|
var Response = new FspFsctlTransactRsp()
|
||||||
{
|
{
|
||||||
@ -412,7 +412,7 @@ namespace Fsp
|
|||||||
Hint = RequestHint
|
Hint = RequestHint
|
||||||
};
|
};
|
||||||
Response.IoStatus.Information = BytesTransferred;
|
Response.IoStatus.Information = BytesTransferred;
|
||||||
Response.IoStatus.Status = Status;
|
Response.IoStatus.Status = (UInt32) Status;
|
||||||
Response.WriteFileInfo = FileInfo;
|
Response.WriteFileInfo = FileInfo;
|
||||||
Api.FspFileSystemSendResponse(_FileSystemPtr, ref Response);
|
Api.FspFileSystemSendResponse(_FileSystemPtr, ref Response);
|
||||||
}
|
}
|
||||||
@ -428,7 +428,7 @@ namespace Fsp
|
|||||||
/// <param name="BytesTransferred">
|
/// <param name="BytesTransferred">
|
||||||
/// Number of bytes read.
|
/// Number of bytes read.
|
||||||
/// </param>
|
/// </param>
|
||||||
public void SendReadResponse(UInt64 RequestHint, UInt32 Status, UInt32 BytesTransferred)
|
public void SendReadResponse(UInt64 RequestHint, Int32 Status, UInt32 BytesTransferred)
|
||||||
{
|
{
|
||||||
var Response = new FspFsctlTransactRsp()
|
var Response = new FspFsctlTransactRsp()
|
||||||
{
|
{
|
||||||
@ -437,7 +437,7 @@ namespace Fsp
|
|||||||
Hint = RequestHint
|
Hint = RequestHint
|
||||||
};
|
};
|
||||||
Response.IoStatus.Information = BytesTransferred;
|
Response.IoStatus.Information = BytesTransferred;
|
||||||
Response.IoStatus.Status = Status;
|
Response.IoStatus.Status = (UInt32) Status;
|
||||||
Api.FspFileSystemSendResponse(_FileSystemPtr, ref Response);
|
Api.FspFileSystemSendResponse(_FileSystemPtr, ref Response);
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -452,7 +452,7 @@ namespace Fsp
|
|||||||
/// <param name="BytesTransferred">
|
/// <param name="BytesTransferred">
|
||||||
/// Number of bytes read.
|
/// Number of bytes read.
|
||||||
/// </param>
|
/// </param>
|
||||||
public void SendReadDirectoryResponse(UInt64 RequestHint, UInt32 Status, UInt32 BytesTransferred)
|
public void SendReadDirectoryResponse(UInt64 RequestHint, Int32 Status, UInt32 BytesTransferred)
|
||||||
{
|
{
|
||||||
var Response = new FspFsctlTransactRsp()
|
var Response = new FspFsctlTransactRsp()
|
||||||
{
|
{
|
||||||
@ -461,7 +461,7 @@ namespace Fsp
|
|||||||
Hint = RequestHint
|
Hint = RequestHint
|
||||||
};
|
};
|
||||||
Response.IoStatus.Information = BytesTransferred;
|
Response.IoStatus.Information = BytesTransferred;
|
||||||
Response.IoStatus.Status = Status;
|
Response.IoStatus.Status = (UInt32) Status;
|
||||||
Api.FspFileSystemSendResponse(_FileSystemPtr, ref Response);
|
Api.FspFileSystemSendResponse(_FileSystemPtr, ref Response);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user