shell32: Use sizeof instead of constant for buffer size.

This commit is contained in:
Vitaly Lipatov 2007-12-01 19:41:46 +03:00 committed by Alexandre Julliard
parent 768c5000f3
commit 2dcb7b5d5c

View file

@ -1266,7 +1266,7 @@ static LONG ShellExecute_FromContextMenu( LPSHELLEXECUTEINFOW sei )
i = 0;
while ( 1 )
{
r = RegEnumKeyW( hkeycm, i++, szguid, 39 );
r = RegEnumKeyW( hkeycm, i++, szguid, sizeof(szguid)/sizeof(szguid[0]) );
if ( r != ERROR_SUCCESS )
break;