Skip to content

Commit

Permalink
adds return statements that got lost in a merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaiah Becker-Mayer committed Jun 28, 2022
1 parent de934c8 commit df484c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/srv/desktop/rdp/rdpclient/src/rdpdr/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ impl Client {
file_id,
FileCacheObject::new(rdp_req.path.clone(), res.fso),
);
cli.prep_device_create_response(
return cli.prep_device_create_response(
&rdp_req,
NTSTATUS::STATUS_SUCCESS,
file_id,
Expand All @@ -437,7 +437,7 @@ impl Client {
flags::CreateDisposition::FILE_CREATE => {
// If the file already exists, fail the request and do not create or open the given file. If it does not, create the given file.
if res.err_code == TdpErrCode::Nil {
cli.prep_device_create_response(
return cli.prep_device_create_response(
&rdp_req,
NTSTATUS::STATUS_OBJECT_NAME_COLLISION,
0,
Expand All @@ -454,7 +454,7 @@ impl Client {
file_id,
FileCacheObject::new(rdp_req.path.clone(), res.fso),
);
cli.prep_device_create_response(
return cli.prep_device_create_response(
&rdp_req,
NTSTATUS::STATUS_SUCCESS,
file_id,
Expand Down

0 comments on commit df484c9

Please sign in to comment.