mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 10:30:22 +00:00
virtdisk: Use --prefer-native instead of DLL_WINE_PREATTACH.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
8818b89051
commit
be79109454
|
@ -1,6 +1,6 @@
|
|||
MODULE = virtdisk.dll
|
||||
|
||||
EXTRADLLFLAGS = -mno-cygwin
|
||||
EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native
|
||||
|
||||
C_SRCS = \
|
||||
virtdisk_main.c
|
||||
|
|
|
@ -26,25 +26,6 @@
|
|||
|
||||
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)
|
||||
{
|
||||
ULONG temp_size = sizeof(STORAGE_DEPENDENCY_INFO);
|
||||
|
|
Loading…
Reference in a new issue