Merge pull request #2612 from oshogbo/style

Function return bool, so lets return FALSE if 0 or TRUE if 1.
This commit is contained in:
Hardening 2015-05-12 15:45:55 +02:00
commit a0a3eedb21
1 changed files with 6 additions and 6 deletions

View File

@ -189,11 +189,11 @@ BOOL GetComputerNameA(LPSTR lpBuffer, LPDWORD lpnSize)
if (*lpnSize <= length) if (*lpnSize <= length)
{ {
*lpnSize = length + 1; *lpnSize = length + 1;
return 0; return FALSE;
} }
if (!lpBuffer) if (!lpBuffer)
return 0; return FALSE;
CopyMemory(lpBuffer, hostname, length); CopyMemory(lpBuffer, hostname, length);
lpBuffer[length] = '\0'; lpBuffer[length] = '\0';
@ -242,7 +242,7 @@ BOOL GetComputerNameExA(COMPUTER_NAME_FORMAT NameType, LPSTR lpBuffer, LPDWORD l
BOOL GetComputerNameExW(COMPUTER_NAME_FORMAT NameType, LPWSTR lpBuffer, LPDWORD nSize) BOOL GetComputerNameExW(COMPUTER_NAME_FORMAT NameType, LPWSTR lpBuffer, LPDWORD nSize)
{ {
WLog_ERR(TAG, "GetComputerNameExW unimplemented"); WLog_ERR(TAG, "GetComputerNameExW unimplemented");
return 0; return FALSE;
} }
/* OSVERSIONINFOEX Structure: /* OSVERSIONINFOEX Structure:
@ -271,16 +271,16 @@ BOOL GetVersionExA(LPOSVERSIONINFOA lpVersionInformation)
lpVersionInformationEx->wReserved = 0; lpVersionInformationEx->wReserved = 0;
} }
return 1; return TRUE;
} }
return 0; return FALSE;
} }
BOOL GetVersionExW(LPOSVERSIONINFOW lpVersionInformation) BOOL GetVersionExW(LPOSVERSIONINFOW lpVersionInformation)
{ {
WLog_ERR(TAG, "GetVersionExW unimplemented"); WLog_ERR(TAG, "GetVersionExW unimplemented");
return 1; return TRUE;
} }
void GetSystemTime(LPSYSTEMTIME lpSystemTime) void GetSystemTime(LPSYSTEMTIME lpSystemTime)