aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/utils/libnt_path_converter/src/device.cpp
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2015-07-16 00:02:37 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2015-07-16 00:02:37 +0300
commit2cdb03ae0f4277891f8f42b21771dbcab5ef3192 (patch)
tree570056040f21d69006c7e2a91796e9ffb46b3c85 /utils/libnt_path_converter/src/device.cpp
parentutils: CMakeLists.txt updates (diff)
downloadwindows7-drivers-2cdb03ae0f4277891f8f42b21771dbcab5ef3192.tar.gz
windows7-drivers-2cdb03ae0f4277891f8f42b21771dbcab5ef3192.zip
libnt_path_converter: code style
Diffstat (limited to '')
-rw-r--r--utils/libnt_path_converter/src/device.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/utils/libnt_path_converter/src/device.cpp b/utils/libnt_path_converter/src/device.cpp
index 3da4533..386b63f 100644
--- a/utils/libnt_path_converter/src/device.cpp
+++ b/utils/libnt_path_converter/src/device.cpp
@@ -32,18 +32,19 @@ namespace libnt_path_converter
const auto in_buf = src.c_str();
const auto in_buf_size = (src.size() + 1) * sizeof(wchar_t);
- DWORD nbreq = get_required_output_size(
+ const auto nbreq = get_required_output_size(
control_code,
in_buf,
in_buf_size);
std::vector<unsigned char> output(nbreq);
- send_control_code(control_code,
- in_buf,
- in_buf_size,
- output.data(),
- nbreq);
+ send_control_code(
+ control_code,
+ in_buf,
+ in_buf_size,
+ output.data(),
+ nbreq);
return reinterpret_cast<wchar_t*>(output.data());
}