kernel32: Remove _hread16() as it is not used. Move _hwrite16() next to the other related functions.

Francois Gouget fgouget at free.fr
Fri Dec 12 03:28:09 CST 2008


---

The krnl386.exe.spec file points _hread() to WIN16_hread() so that this 
_hread16() function is unused.

The naming of these implementations is a bit inconsistent but it may not 
be worth a patch to fix it (but if it is I'll gladly send one).


 dlls/kernel32/file16.c |   27 +++++++++------------------
 1 files changed, 9 insertions(+), 18 deletions(-)

diff --git a/dlls/kernel32/file16.c b/dlls/kernel32/file16.c
index 9d90d85..ad30903 100644
--- a/dlls/kernel32/file16.c
+++ b/dlls/kernel32/file16.c
@@ -336,6 +336,15 @@ UINT16 WINAPI WIN16_lread( HFILE16 hFile, SEGPTR buffer, UINT16 count )
 
 
 /***********************************************************************
+ *           _hwrite   (KERNEL.350)
+ */
+LONG WINAPI _hwrite16( HFILE16 hFile, LPCSTR buffer, LONG count )
+{
+    return _hwrite( (HFILE)DosFileHandleToWin32Handle(hFile), buffer, count );
+}
+
+
+/***********************************************************************
  *           GetTempDrive   (KERNEL.92)
  * A closer look at krnl386.exe shows what the SDK doesn't mention:
  *
@@ -531,24 +540,6 @@ UINT16 WINAPI SetHandleCount16( UINT16 count )
 
 
 /***********************************************************************
- *           _hread16   (KERNEL.349)
- */
-LONG WINAPI _hread16( HFILE16 hFile, LPVOID buffer, LONG count)
-{
-    return _lread( (HFILE)DosFileHandleToWin32Handle(hFile), buffer, count );
-}
-
-
-/***********************************************************************
- *           _hwrite   (KERNEL.350)
- */
-LONG WINAPI _hwrite16( HFILE16 hFile, LPCSTR buffer, LONG count )
-{
-    return _hwrite( (HFILE)DosFileHandleToWin32Handle(hFile), buffer, count );
-}
-
-
-/***********************************************************************
  *           WritePrivateProfileStruct (KERNEL.406)
  */
 BOOL16 WINAPI WritePrivateProfileStruct16 (LPCSTR section, LPCSTR key,
-- 
1.5.6.5




More information about the wine-patches mailing list