Replace post-increment with pre-increment

And post-decrement with pre-decrement.
This commit is contained in:
Chocobo1 2018-05-31 01:06:28 +08:00
parent 40330c4606
commit 5ddbf9bba9
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
16 changed files with 58 additions and 58 deletions

View file

@ -867,7 +867,7 @@ namespace
LONG res = ::RegQueryInfoKeyW(handle, NULL, NULL, NULL, &cSubKeys, &cMaxSubKeyLen, NULL, NULL, NULL, NULL, NULL, NULL);
if (res == ERROR_SUCCESS) {
cMaxSubKeyLen++; // For null character
++cMaxSubKeyLen; // For null character
LPWSTR lpName = new WCHAR[cMaxSubKeyLen];
DWORD cName;