Module: wine Branch: master Commit: 858ccfff8bc29c6f9f8bd9d13372669ab0ac2c36 URL: http://source.winehq.org/git/wine.git/?a=commit;h=858ccfff8bc29c6f9f8bd9d133...
Author: Thomas Mullaly thomas.mullaly@gmail.com Date: Sun Jan 2 17:13:43 2011 -0500
normaliz: Added normaliz.dll stub.
---
configure | 1 + configure.ac | 1 + dlls/normaliz/Makefile.in | 7 ++++++ dlls/normaliz/normaliz.c | 50 +++++++++++++++++++++++++++++++++++++++++++ dlls/normaliz/normaliz.spec | 5 ++++ 5 files changed, 64 insertions(+), 0 deletions(-)
diff --git a/configure b/configure index e49ad75..25b8533 100755 --- a/configure +++ b/configure @@ -15148,6 +15148,7 @@ wine_fn_config_dll nddeapi enable_nddeapi implib wine_fn_config_dll netapi32 enable_netapi32 implib wine_fn_config_test dlls/netapi32/tests netapi32_test wine_fn_config_dll newdev enable_newdev implib +wine_fn_config_dll normaliz enable_normaliz implib wine_fn_config_dll npmshtml enable_npmshtml wine_fn_config_dll ntdll enable_ntdll implib wine_fn_config_test dlls/ntdll/tests ntdll_test diff --git a/configure.ac b/configure.ac index 9ceb0f1..9ed1a5d 100644 --- a/configure.ac +++ b/configure.ac @@ -2635,6 +2635,7 @@ WINE_CONFIG_DLL(nddeapi,,[implib]) WINE_CONFIG_DLL(netapi32,,[implib]) WINE_CONFIG_TEST(dlls/netapi32/tests) WINE_CONFIG_DLL(newdev,,[implib]) +WINE_CONFIG_DLL(normaliz,,[implib]) WINE_CONFIG_DLL(npmshtml) WINE_CONFIG_DLL(ntdll,,[implib]) WINE_CONFIG_TEST(dlls/ntdll/tests) diff --git a/dlls/normaliz/Makefile.in b/dlls/normaliz/Makefile.in new file mode 100644 index 0000000..9cc5a52 --- /dev/null +++ b/dlls/normaliz/Makefile.in @@ -0,0 +1,7 @@ +MODULE = normaliz.dll +IMPORTLIB = normaliz + +C_SRCS = \ + normaliz.c + +@MAKE_DLL_RULES@ diff --git a/dlls/normaliz/normaliz.c b/dlls/normaliz/normaliz.c new file mode 100644 index 0000000..c00df40 --- /dev/null +++ b/dlls/normaliz/normaliz.c @@ -0,0 +1,50 @@ +/* + * Normaliz DLL. + * + * Copyright 2011 Thomas Mullaly + * + * 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 + */ + +/* All calls to this DLL are forwarded to kernel32. On Windows XP this DLL actually contains + * the implementations for the functions it exports, but, starting with Vista these + * functions have been moved into kernel32. + */ + +#include <stdarg.h> + +#include "windef.h" +#include "winbase.h" +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(authz); + +BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) +{ + TRACE("(0x%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved); + + switch (fdwReason) + { + case DLL_WINE_PREATTACH: + return FALSE; /* prefer native version */ + case DLL_PROCESS_ATTACH: + DisableThreadLibraryCalls(hinstDLL); + break; + default: + break; + } + + return TRUE; +} diff --git a/dlls/normaliz/normaliz.spec b/dlls/normaliz/normaliz.spec new file mode 100644 index 0000000..b26649b --- /dev/null +++ b/dlls/normaliz/normaliz.spec @@ -0,0 +1,5 @@ +@ stdcall IdnToAscii(long wstr long ptr long) kernel32.IdnToAscii +@ stdcall IdnToNameprepUnicode(long wstr long ptr long) kernel32.IdnToNameprepUnicode +@ stdcall IdnToUnicode(long wstr long ptr long) kernel32.IdnToUnicode +@ stdcall IsNormalizedString(long wstr long) kernel32.IsNormalizedString +@ stdcall NormalizeString(long wstr long ptr long) kernel32.NormalizeString