Skip to content

Commit

Permalink
[install] Fix typo in unused reg_query_dword() function
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael Brown committed May 5, 2009
1 parent 91d3f57 commit 35ee333
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion installer/registry.c
Expand Up @@ -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;
Expand Down

0 comments on commit 35ee333

Please sign in to comment.