mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-26 19:33:31 +00:00
[SYSSETUP] Close the device key after the property sheet page has been released.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user