diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2015-07-16 00:02:37 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2015-07-16 00:02:37 +0300 |
commit | 2cdb03ae0f4277891f8f42b21771dbcab5ef3192 (patch) | |
tree | 570056040f21d69006c7e2a91796e9ffb46b3c85 /utils/libnt_path_converter | |
parent | utils: CMakeLists.txt updates (diff) | |
download | windows7-drivers-2cdb03ae0f4277891f8f42b21771dbcab5ef3192.tar.gz windows7-drivers-2cdb03ae0f4277891f8f42b21771dbcab5ef3192.zip |
libnt_path_converter: code style
Diffstat (limited to 'utils/libnt_path_converter')
-rw-r--r-- | utils/libnt_path_converter/src/device.cpp | 13 |
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()); } |