[Wine-patches] [eterhack] Fix eterbug #2675.
Alexander Morozov
=?iso-8859-1?q?amorozov_=CE=C1_etersoft=2Eru?=
Вт Мар 31 19:23:37 MSD 2009
----------- следующая часть -----------
From f31621164cb9996495626f43910542910af7db42 Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov на etersoft.ru>
Date: Tue, 31 Mar 2009 19:14:26 +0400
Subject: [PATCH] Fix eterbug #2675.
---
dlls/ntdll/file.c | 8 ++++++++
include/wine/etersoft.h | 3 +++
2 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/dlls/ntdll/file.c b/dlls/ntdll/file.c
index 503ecea..6a98f95 100644
--- a/dlls/ntdll/file.c
+++ b/dlls/ntdll/file.c
@@ -82,6 +82,7 @@
#include "winternl.h"
#include "winioctl.h"
#include "ddk/ntddser.h"
+#include "wine/etersoft.h"
WINE_DEFAULT_DEBUG_CHANNEL(ntdll);
@@ -1250,6 +1251,13 @@ static NTSTATUS server_ioctl_file( HANDLE handle, HANDLE event,
RtlFreeHeap( GetProcessHeap(), 0, async );
}
+ LOADETER_FUNC( etersoft_fix_driver );
+ if (etersoft_fix_driver)
+ {
+ etersoft_fix_driver( code, out_buffer, out_size, (long *)&status,
+ &io->Information );
+ io->u.Status = status;
+ }
return status;
}
diff --git a/include/wine/etersoft.h b/include/wine/etersoft.h
index c88a4a5..fc29d39 100644
--- a/include/wine/etersoft.h
+++ b/include/wine/etersoft.h
@@ -156,4 +156,7 @@ static int (*etersoft_1version)(void);
static int (*etersoft_getwm)(void);
#endif
+static void (*etersoft_fix_driver)(unsigned long code, void *out_buffer,
+ unsigned long out_size, long *status, unsigned long *info);
+
#endif
--
1.6.1.3.GIT
Подробная информация о списке рассылки Wine-patches