winnls32: Make winnls.dll into a stand-alone 16-bit module.
diff --git a/.gitignore b/.gitignore index 3619da5..b2c44c2 100644 --- a/.gitignore +++ b/.gitignore
@@ -96,7 +96,6 @@ dlls/win32s16.dll16 dlls/wineps16.drv16 dlls/wing.dll16 -dlls/winnls.dll16 dlls/winsock.dll16 dlls/wprocs.dll16 include/activaut.h
diff --git a/configure b/configure index 2b50abf..e11f83c 100755 --- a/configure +++ b/configure Binary files differ
diff --git a/configure.ac b/configure.ac index c3f7008..9ee0e88 100644 --- a/configure.ac +++ b/configure.ac
@@ -2271,6 +2271,7 @@ WINE_CONFIG_MAKEFILE([dlls/wininet/tests/Makefile],[dlls/Maketest.rules],[dlls],[ALL_TEST_DIRS],[enable_tests]) WINE_CONFIG_MAKEFILE([dlls/winmm/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) WINE_CONFIG_MAKEFILE([dlls/winmm/tests/Makefile],[dlls/Maketest.rules],[dlls],[ALL_TEST_DIRS],[enable_tests]) +WINE_CONFIG_MAKEFILE([dlls/winnls.dll16/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS],[enable_win16]) WINE_CONFIG_MAKEFILE([dlls/winnls32/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) WINE_CONFIG_MAKEFILE([dlls/winscard/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) WINE_CONFIG_MAKEFILE([dlls/winspool.drv/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
diff --git a/dlls/Makefile.in b/dlls/Makefile.in index bf7bcc0..2de197d 100644 --- a/dlls/Makefile.in +++ b/dlls/Makefile.in
@@ -35,7 +35,6 @@ win32s16.dll16 \ wineps16.drv16 \ wing.dll16 \ - winnls.dll16 \ winsock.dll16 \ wprocs.dll16 @@ -86,9 +85,6 @@ mmsystem.dll16: echo "winmm.dll" >$@ -winnls.dll16: - echo "winnls32.dll" >$@ - winsock.dll16: echo "ws2_32.dll" >$@
diff --git a/dlls/winnls.dll16/Makefile.in b/dlls/winnls.dll16/Makefile.in new file mode 100644 index 0000000..0552321 --- /dev/null +++ b/dlls/winnls.dll16/Makefile.in
@@ -0,0 +1,15 @@ +TOPSRCDIR = @top_srcdir@ +TOPOBJDIR = ../.. +SRCDIR = @srcdir@ +VPATH = @srcdir@ +MODULE = winnls.dll16 +IMPORTS = winnls32 kernel32 +EXTRADLLFLAGS = -Wb,--subsystem,win16,--main-module,winnls32.dll + +SPEC_SRCS = winnls.dll16.spec + +C_SRCS = winnls.c + +@MAKE_DLL_RULES@ + +@DEPENDENCIES@ # everything below this line is overwritten by make depend
diff --git a/dlls/winnls.dll16/winnls.c b/dlls/winnls.dll16/winnls.c new file mode 100644 index 0000000..778c254 --- /dev/null +++ b/dlls/winnls.dll16/winnls.c
@@ -0,0 +1,41 @@ +/* + * Copyright 2001 Andreas Mohr + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#include <stdarg.h> + +#include "windef.h" +#include "winbase.h" +#include "winnls32.h" +#include "wownt32.h" +#include "wine/winuser16.h" + +/*********************************************************************** + * WINNLSEnableIME (WINNLS.16) + */ +BOOL WINAPI WINNLSEnableIME16( HWND16 hwnd, BOOL enable ) +{ + return WINNLSEnableIME( HWND_32(hwnd), enable ); +} + +/*********************************************************************** + * WINNLSGetEnableStatus (WINNLS.18) + */ +BOOL WINAPI WINNLSGetEnableStatus16( HWND16 hwnd ) +{ + return WINNLSGetEnableStatus( HWND_32(hwnd) ); +}
diff --git a/dlls/winnls32/winnls.spec b/dlls/winnls.dll16/winnls.dll16.spec similarity index 100% rename from dlls/winnls32/winnls.spec rename to dlls/winnls.dll16/winnls.dll16.spec
diff --git a/dlls/winnls32/Makefile.in b/dlls/winnls32/Makefile.in index ed062d8..ecdfc1c 100644 --- a/dlls/winnls32/Makefile.in +++ b/dlls/winnls32/Makefile.in
@@ -9,8 +9,6 @@ C_SRCS = \ winnls.c -SPEC_SRCS16 = winnls.spec - @MAKE_DLL_RULES@ @DEPENDENCIES@ # everything below this line is overwritten by make depend
diff --git a/dlls/winnls32/winnls.c b/dlls/winnls32/winnls.c index 357b04e..2366815 100644 --- a/dlls/winnls32/winnls.c +++ b/dlls/winnls32/winnls.c
@@ -20,7 +20,7 @@ #include "windef.h" #include "winbase.h" -#include "wine/winuser16.h" +#include "winnls32.h" /*********************************************************************** * DllMain (WINNLS.@) @@ -39,26 +39,17 @@ } /*********************************************************************** - * WINNLSEnableIME (WINNLS.16) + * WINNLSGetEnableStatus (WINNLS32.2) */ -BOOL WINAPI WINNLSEnableIME16(HWND16 hWnd, BOOL fEnable) -{ - /* fake return of previous status. is this what this function should do ? */ - return !fEnable; -} - -/*********************************************************************** - * WINNLSGetEnableStatus (WINNLS.18) - */ -BOOL WINAPI WINNLSGetEnableStatus16(HWND16 hWnd) +BOOL WINAPI WINNLSGetEnableStatus(HWND hWnd) { return FALSE; } /*********************************************************************** - * WINNLS32EnableIME (WINNLS32.1) + * WINNLSEnableIME (WINNLS32.1) */ -BOOL WINAPI WINNLS32EnableIME(HWND hWnd, BOOL fEnable) +BOOL WINAPI WINNLSEnableIME(HWND hWnd, BOOL fEnable) { /* fake return of previous status. is this what this function should do ? */ return !fEnable;
diff --git a/dlls/winnls32/winnls32.spec b/dlls/winnls32/winnls32.spec index e2dfdee..18bffea 100644 --- a/dlls/winnls32/winnls32.spec +++ b/dlls/winnls32/winnls32.spec
@@ -1,5 +1,5 @@ -1 stdcall WINNLS32EnableIME(long long) -2 stub WINNLS32GetEnableStatus +1 stdcall WINNLSEnableIME(long long) +2 stdcall WINNLSGetEnableStatus(long) 3 stub WINNLS32GetIMEHotKey 21 stub IMP32GetIME 22 stub IMP32QueryIME