Vitaly Lipatov : shell32: Use sizeof instead of constant for buffer size.

Alexandre Julliard julliard at winehq.org
Wed Dec 5 06:56:52 CST 2007


Module: wine
Branch: master
Commit: 2dcb7b5d5c30ee4a9ee4f9f06d7b72b3aefb2cd3
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2dcb7b5d5c30ee4a9ee4f9f06d7b72b3aefb2cd3

Author: Vitaly Lipatov <lav at etersoft.ru>
Date:   Sat Dec  1 19:41:46 2007 +0300

shell32: Use sizeof instead of constant for buffer size.

---

 dlls/shell32/shlexec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/shell32/shlexec.c b/dlls/shell32/shlexec.c
index a6a7138..bc93e13 100644
--- a/dlls/shell32/shlexec.c
+++ b/dlls/shell32/shlexec.c
@@ -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;
 




More information about the wine-cvs mailing list