-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
patch GetOpenFileName to remove hooks
- Loading branch information
Showing
4 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#define _WIN32_WINNT 0x0400 | ||
#include <windows.h> | ||
|
||
#include "debug.h" | ||
|
||
BOOL WINAPI CORKEL32_GetOpenFileNameA(LPOPENFILENAMEA lpOpenFileName) | ||
{ | ||
Trace(TRACE_PASSTHROUGH, "GetOpenFileNameA"); | ||
|
||
// .NET's hook crashes USER.EXE, so we remove it here | ||
lpOpenFileName->lpfnHook = NULL; | ||
|
||
return GetOpenFileNameA(lpOpenFileName); | ||
} | ||
|
||
BOOL WINAPI CORKEL32_GetOpenFileNameW(LPOPENFILENAMEW lpOpenFileName) | ||
{ | ||
Trace(TRACE_PASSTHROUGH, "GetOpenFileNameW"); | ||
|
||
// .NET's hook crashes USER.EXE, so we remove it here | ||
lpOpenFileName->lpfnHook = NULL; | ||
|
||
return GetOpenFileNameW(lpOpenFileName); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters