Specify enough buffer for id[] (20 chars are not enough).

This commit is contained in:
Marcus Meissner 2005-06-17 20:54:29 +00:00 committed by Alexandre Julliard
parent 5b2d5fd758
commit 94bc167ae4
1 changed files with 2 additions and 2 deletions

View File

@ -145,14 +145,14 @@ static void create_registry_keys( const SYSTEM_INFO *info )
{
for (i = 0; i < info->dwNumberOfProcessors; i++)
{
char num[10], id[20];
char num[10], id[60];
attr.RootDirectory = cpu_key;
sprintf( num, "%d", i );
RtlCreateUnicodeStringFromAsciiz( &nameW, num );
if (!NtCreateKey( &hkey, KEY_ALL_ACCESS, &attr, 0, NULL, 0, NULL ))
{
WCHAR idW[40];
WCHAR idW[60];
DWORD cpuMHz = cpuHz / 1000000;
/*TODO: report 64bit processors properly*/