use the address of the value, not the value itself

patch by Gregor Schneider <grschneider at gmail.com>
See issue #3547 for more details.

svn path=/trunk/; revision=34669
This commit is contained in:
Christoph von Wittich 2008-07-22 09:38:03 +00:00
parent d69ea33500
commit 23452e24a7

View file

@ -170,7 +170,7 @@ WriteGlobalData(PGLOBAL_DATA pGlobalData)
_T("Sound On Activation"),
0,
REG_DWORD,
(LPBYTE)pGlobalData->bSoundOnActivation,
(LPBYTE)&pGlobalData->bSoundOnActivation,
sizeof(BOOL));
RegCloseKey(hKey);