[install] Fix typo in unused reg_query_dword() function
authorMichael Brown <mcb30@etherboot.org>
Tue, 5 May 2009 09:42:45 +0000 (10:42 +0100)
committerMichael Brown <mcb30@etherboot.org>
Tue, 5 May 2009 09:42:45 +0000 (10:42 +0100)
This is one of the many reasons why I dislike Microsoftian-Hungarian
notation; it makes it difficult to see which variables are pointers.

Reported-by: magicxie <magicxie@gmail.com>
installer/registry.c

index 17e591d..f3ff6ef 100644 (file)
@@ -408,7 +408,7 @@ LONG reg_query_dword ( HKEY key, LPCWSTR subkey_name, LPCWSTR value_name,
        }
 
        /* Copy dword data */
-       memcpy ( &dword, buffer, sizeof ( dword ) );
+       memcpy ( dword, buffer, sizeof ( *dword ) );
 
        /* Success */
        err = ERROR_SUCCESS;