Specify enough buffer for id[] (20 chars are not enough).
This commit is contained in:
parent
5b2d5fd758
commit
94bc167ae4
|
@ -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*/
|
||||
|
|
Loading…
Reference in New Issue