diff options
author | Anna Platash <anna.platash@intel.com> | 2021-01-04 14:16:29 +0300 |
---|---|---|
committer | Anna Platash <anna.platash@intel.com> | 2021-01-11 12:02:38 +0300 |
commit | 2f40973e8168f4a7eba3d669560edb1ee61c3761 (patch) | |
tree | 8a14d71b206dc386b3e4ebe6858cb2840ee744e3 | |
parent | b9e1047161726e66ae8364b1a0f7002143f20ff7 (diff) | |
download | virtual-media-2f40973e8168f4a7eba3d669560edb1ee61c3761.tar.xz |
WriteProtected value uses reversed logic
When mounting image with WriteProtected set to true,
it is shown to be false and vice versa.
Change-Id: Id5ff0f0deb5d5822279dd02af0deeb7586dcd065
Signed-off-by: Anna Platash <anna.platash@intel.com>
-rw-r--r-- | src/state/initial_state.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/state/initial_state.hpp b/src/state/initial_state.hpp index 6f20bb4..24a95d8 100644 --- a/src/state/initial_state.hpp +++ b/src/state/initial_state.hpp @@ -110,7 +110,7 @@ struct InitialState : public BasicStateT<InitialState> [&target = machine.getTarget()](const bool& property) { if (target) { - return target->rw; + return !target->rw; } return bool(true); }); |