mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[SYSSETUP] Close the device key after the property sheet page has been released.
This commit is contained in:
parent
6c16f12de5
commit
b6ebd50d3f
1 changed files with 7 additions and 1 deletions
|
@ -490,9 +490,15 @@ MouseCallback(
|
|||
UINT uMsg,
|
||||
LPPROPSHEETPAGE ppsp)
|
||||
{
|
||||
PMOUSE_INFO pMouseInfo;
|
||||
|
||||
pMouseInfo = (PMOUSE_INFO)ppsp->lParam;
|
||||
|
||||
if (uMsg == PSPCB_RELEASE)
|
||||
{
|
||||
HeapFree(GetProcessHeap(), 0, (PMOUSE_INFO)ppsp->lParam);
|
||||
if (pMouseInfo->hDeviceKey != NULL)
|
||||
RegCloseKey(pMouseInfo->hDeviceKey);
|
||||
HeapFree(GetProcessHeap(), 0, pMouseInfo);
|
||||
}
|
||||
|
||||
return 1;
|
||||
|
|
Loading…
Reference in a new issue