Commit faa7af5e authored by Alexandre Julliard's avatar Alexandre Julliard

wer: Use --prefer-native instead of DLL_WINE_PREATTACH.

parent be791094
...@@ -2,7 +2,7 @@ MODULE = wer.dll ...@@ -2,7 +2,7 @@ MODULE = wer.dll
IMPORTLIB = wer IMPORTLIB = wer
IMPORTS = advapi32 IMPORTS = advapi32
EXTRADLLFLAGS = -mno-cygwin EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native
C_SRCS = \ C_SRCS = \
main.c main.c
...@@ -50,22 +50,6 @@ static struct list report_table = LIST_INIT(report_table); ...@@ -50,22 +50,6 @@ static struct list report_table = LIST_INIT(report_table);
static const WCHAR regpath_exclude[] = L"Software\\Microsoft\\Windows Error Reporting\\ExcludedApplications"; static const WCHAR regpath_exclude[] = L"Software\\Microsoft\\Windows Error Reporting\\ExcludedApplications";
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
TRACE("(0x%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved);
switch (fdwReason)
{
case DLL_WINE_PREATTACH:
return FALSE; /* prefer native version */
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls(hinstDLL);
break;
}
return TRUE;
}
/*********************************************************************** /***********************************************************************
* WerAddExcludedApplication (wer.@) * WerAddExcludedApplication (wer.@)
* *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment