mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:52:56 +00:00
- Fix dereference of freed memory
svn path=/trunk/; revision=42772
This commit is contained in:
parent
1361a97afb
commit
4e9ecfe8a7
1 changed files with 2 additions and 1 deletions
|
@ -65,6 +65,7 @@ CALLBACK
|
||||||
ExitThreadApc(ULONG_PTR Context)
|
ExitThreadApc(ULONG_PTR Context)
|
||||||
{
|
{
|
||||||
PWAH_HELPER_CONTEXT HelperContext = (PWAH_HELPER_CONTEXT)Context;
|
PWAH_HELPER_CONTEXT HelperContext = (PWAH_HELPER_CONTEXT)Context;
|
||||||
|
HMODULE DllHandle = HelperContext->DllHandle;
|
||||||
|
|
||||||
/* Close the file handle */
|
/* Close the file handle */
|
||||||
CloseHandle(HelperContext->FileHandle);
|
CloseHandle(HelperContext->FileHandle);
|
||||||
|
@ -73,7 +74,7 @@ ExitThreadApc(ULONG_PTR Context)
|
||||||
HeapFree(GlobalHeap, 0, HelperContext);
|
HeapFree(GlobalHeap, 0, HelperContext);
|
||||||
|
|
||||||
/* Exit the thread and library */
|
/* Exit the thread and library */
|
||||||
FreeLibraryAndExitThread(HelperContext->DllHandle, ERROR_SUCCESS);
|
FreeLibraryAndExitThread(DllHandle, ERROR_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
DWORD
|
DWORD
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue