Commit be791094 authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent 8818b890
MODULE = virtdisk.dll MODULE = virtdisk.dll
EXTRADLLFLAGS = -mno-cygwin EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native
C_SRCS = \ C_SRCS = \
virtdisk_main.c virtdisk_main.c
...@@ -26,25 +26,6 @@ ...@@ -26,25 +26,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(virtdisk); WINE_DEFAULT_DEBUG_CHANNEL(virtdisk);
/*****************************************************
* DllMain (VIRTDISK.@)
*/
BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, void *reserved)
{
TRACE("(%p, %d, %p)\n", hinst, reason, reserved);
switch (reason)
{
case DLL_WINE_PREATTACH:
return FALSE; /* prefer native version */
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls(hinst);
break;
}
return TRUE;
}
DWORD WINAPI GetStorageDependencyInformation(HANDLE obj, GET_STORAGE_DEPENDENCY_FLAG flags, ULONG size, STORAGE_DEPENDENCY_INFO *info, ULONG *used) DWORD WINAPI GetStorageDependencyInformation(HANDLE obj, GET_STORAGE_DEPENDENCY_FLAG flags, ULONG size, STORAGE_DEPENDENCY_INFO *info, ULONG *used)
{ {
ULONG temp_size = sizeof(STORAGE_DEPENDENCY_INFO); ULONG temp_size = sizeof(STORAGE_DEPENDENCY_INFO);
......
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