mirror of
https://github.com/reactos/reactos.git
synced 2024-12-30 19:14:31 +00:00
zero the entire buffer
svn path=/trunk/; revision=17524
This commit is contained in:
parent
a8e3f13a42
commit
5c7747b97c
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ int main (int argc, char ** argv)
|
||||||
TCHAR ComputerName [MAX_COMPUTERNAME_LENGTH + 1];
|
TCHAR ComputerName [MAX_COMPUTERNAME_LENGTH + 1];
|
||||||
DWORD ComputerNameSize = sizeof ComputerName / sizeof ComputerName[0];
|
DWORD ComputerNameSize = sizeof ComputerName / sizeof ComputerName[0];
|
||||||
|
|
||||||
ZeroMemory (ComputerName, ComputerNameSize);
|
ZeroMemory (ComputerName, sizeof ComputerName );
|
||||||
if (GetComputerName(ComputerName, & ComputerNameSize))
|
if (GetComputerName(ComputerName, & ComputerNameSize))
|
||||||
{
|
{
|
||||||
printf ("%s\n", ComputerName);
|
printf ("%s\n", ComputerName);
|
||||||
|
|
Loading…
Reference in a new issue