Mike McCormack : programs: Use WIN32_LEAN_AND_MEAN.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Jan 18 10:50:47 CST 2006
Module: wine
Branch: refs/heads/master
Commit: 002e143981d97f3bb0f9d7a3a6b44e779b23b7a0
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=002e143981d97f3bb0f9d7a3a6b44e779b23b7a0
Author: Mike McCormack <mike at codeweavers.com>
Date: Wed Jan 18 14:23:11 2006 +0100
programs: Use WIN32_LEAN_AND_MEAN.
---
programs/notepad/license.c | 1 +
programs/regsvr32/regsvr32.c | 6 ++++--
programs/winebrowser/main.c | 2 ++
programs/winhelp/callback.c | 2 ++
programs/winhelp/macro.c | 2 ++
5 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/programs/notepad/license.c b/programs/notepad/license.c
index 1fcef23..3c90ca3 100644
--- a/programs/notepad/license.c
+++ b/programs/notepad/license.c
@@ -18,6 +18,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include "license.h"
diff --git a/programs/regsvr32/regsvr32.c b/programs/regsvr32/regsvr32.c
index 184e00a..866c285 100644
--- a/programs/regsvr32/regsvr32.c
+++ b/programs/regsvr32/regsvr32.c
@@ -45,6 +45,8 @@
* support.
*/
+#define WIN32_LEAN_AND_MEAN
+
#include "config.h"
#include "wine/port.h"
@@ -88,7 +90,7 @@ static VOID *LoadProc(const char* strDll
if(!Silent)
printf("Failed to load DLL %s\n", strDll);
- exit(-1);
+ ExitProcess(1);
}
proc = (VOID *) GetProcAddress(*DllHandle, procName);
if(!proc)
@@ -96,7 +98,7 @@ static VOID *LoadProc(const char* strDll
if(!Silent)
printf("%s not implemented in DLL %s\n", procName, strDll);
FreeLibrary(*DllHandle);
- exit(-1);
+ ExitProcess(1);
}
return proc;
}
diff --git a/programs/winebrowser/main.c b/programs/winebrowser/main.c
index 38648de..6835d47 100644
--- a/programs/winebrowser/main.c
+++ b/programs/winebrowser/main.c
@@ -35,6 +35,8 @@
* mailto:[E-MAIL]?subject=[TOPIC]&cc=[E-MAIL]&bcc=[E-MAIL]&body=[TEXT]
*/
+#define WIN32_LEAN_AND_MEAN
+
#include "config.h"
#include "wine/port.h"
diff --git a/programs/winhelp/callback.c b/programs/winhelp/callback.c
index 3627547..aaa4eae 100644
--- a/programs/winhelp/callback.c
+++ b/programs/winhelp/callback.c
@@ -18,6 +18,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#define WIN32_LEAN_AND_MEAN
+
#include <stdio.h>
#include "windows.h"
diff --git a/programs/winhelp/macro.c b/programs/winhelp/macro.c
index e34a4dc..8727378 100644
--- a/programs/winhelp/macro.c
+++ b/programs/winhelp/macro.c
@@ -19,6 +19,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#define WIN32_LEAN_AND_MEAN
+
#include <stdio.h>
#include "windows.h"
More information about the wine-cvs
mailing list