Client: Fix missed 'else' keyword.

From PVS Studio:
V646
Consider inspecting the application's logic. It's possible that 'else' keyword is missing.
https://www.viva64.com/en/w/V646/print/

Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
This commit is contained in:
Vitalii Koshura 2017-04-02 07:38:14 +03:00
parent 6252e8b83b
commit 0bd4556bf6
No known key found for this signature in database
GPG Key ID: CE0DB1726070A5A3
1 changed files with 2 additions and 2 deletions

View File

@ -885,9 +885,9 @@ int get_os_information(
if ( lstrcmpi( "WINNT", szProductType) == 0 ) {
safe_strcpy( szSKU, "Workstation Edition" );
} if ( lstrcmpi( "LANMANNT", szProductType) == 0 ) {
} else if ( lstrcmpi( "LANMANNT", szProductType) == 0 ) {
safe_strcpy( szSKU, "Server Edition" );
} if ( lstrcmpi( "SERVERNT", szProductType) == 0 ) {
} else if ( lstrcmpi( "SERVERNT", szProductType) == 0 ) {
safe_strcpy( szSKU, "Advanced Server Edition" );
}