From 5ee42b3b80191590c7d06250927de13bc9ac6951 Mon Sep 17 00:00:00 2001 From: John Klehm Date: Thu, 9 Oct 2008 02:33:40 -0500 Subject: programs/winecalc stub for calc.exe --- programs/winecalc/Makefile.in | 14 ++++++++++++++ programs/winecalc/calc | 1 + programs/winecalc/winecalc.c | 28 ++++++++++++++++++++++++++++ tools/wine.inf.in | 1 + 4 files changed, 44 insertions(+), 0 deletions(-) create mode 100644 programs/winecalc/Makefile.in create mode 120000 programs/winecalc/calc create mode 100644 programs/winecalc/winecalc.c diff --git a/programs/winecalc/Makefile.in b/programs/winecalc/Makefile.in new file mode 100644 index 0000000..4229dac --- /dev/null +++ b/programs/winecalc/Makefile.in @@ -0,0 +1,14 @@ +EXTRADEFS = -DWINE_NO_UNICODE_MACROS +TOPSRCDIR = @top_srcdir@ +TOPOBJDIR = ../.. +SRCDIR = @srcdir@ +VPATH = @srcdir@ +MODULE = calc.exe +APPMODE = -mwindows +IMPORTS = shell32 kernel32 + +C_SRCS = winecalc.c + +@MAKE_PROG_RULES@ + +@DEPENDENCIES@ # everything below this line is overwritten by make depend diff --git a/programs/winecalc/calc b/programs/winecalc/calc new file mode 120000 index 0000000..82c8632 --- /dev/null +++ b/programs/winecalc/calc @@ -0,0 +1 @@ +../../tools/winewrapper \ No newline at end of file diff --git a/programs/winecalc/winecalc.c b/programs/winecalc/winecalc.c new file mode 100644 index 0000000..f497469 --- /dev/null +++ b/programs/winecalc/winecalc.c @@ -0,0 +1,28 @@ +/* + * Wine calculator wrapper + * + * Copyright 2008 John Klehm + * + * 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 "config.h" +#include "windows.h" + + +int WINAPI WinMain (HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show) +{ + return 0; +} diff --git a/tools/wine.inf.in b/tools/wine.inf.in index 00e9b97..0409613 100644 --- a/tools/wine.inf.in +++ b/tools/wine.inf.in @@ -2249,6 +2249,7 @@ HKLM,%CurrentVersion%\Telephony\Country List\998,"SameAreaRule",,"G" 11,,advpack.dll 11,,appwiz.cpl 11,,cabinet.dll +11,,calc.exe 11,,cmd.exe 11,,comctl32.dll 11,,comdlg32.dll -- 1.5.4.3