Module: wine
Branch: master
Commit: 6a355aec1b1c88cfe2927b072c48c57b5e5946dd
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6a355aec1b1c88cfe2927b072…
Author: Jeff Latimer <lats(a)yless4u.com.au>
Date: Sat Oct 14 19:51:43 2006 +1000
ole32: Remove dead code in errorinfo.c (Coverity).
---
dlls/ole32/errorinfo.c | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/dlls/ole32/errorinfo.c b/dlls/ole32/errorinfo.c
index 62e27e0..b7ce50a 100644
--- a/dlls/ole32/errorinfo.c
+++ b/dlls/ole32/errorinfo.c
@@ -83,14 +83,10 @@ static BSTR WINAPI ERRORINFO_SysAllocStr
newBuffer++;
/*
- * Copy the information in the buffer.
- * Since it is valid to pass a NULL pointer here, we'll initialize the
- * buffer to nul if it is the case.
+ * Copy the information in the buffer. It is not possible to pass
+ * a NULL pointer here.
*/
- if (in != 0)
- memcpy(newBuffer, in, bufferSize);
- else
- memset(newBuffer, 0, bufferSize);
+ memcpy(newBuffer, in, bufferSize);
/*
* Make sure that there is a nul character at the end of the
Module: wine
Branch: master
Commit: 5af9402ef188d484921d204b8b9d5325363a8a6d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5af9402ef188d484921d204b8…
Author: Peter Oberndorfer <kumbayo84(a)arcor.de>
Date: Fri Oct 13 16:09:29 2006 +0200
configure: Detect mingw cross compiler in gentoo.
---
configure | 6 +++---
configure.ac | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/configure b/configure
index 33746d1..3ea21f2 100755
--- a/configure
+++ b/configure
@@ -16185,7 +16185,7 @@ echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6; }
if test "$cross_compiling" = "no"
then
- for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
+ for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw32-gcc mingw-gcc
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
@@ -16228,7 +16228,7 @@ fi
done
test -n "$CROSSCC" || CROSSCC="false"
- for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
+ for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw32-dlltool mingw-dlltool
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
@@ -16271,7 +16271,7 @@ fi
done
test -n "$DLLTOOL" || DLLTOOL="false"
- for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw-windres
+ for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw32-windres mingw-windres
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
diff --git a/configure.ac b/configure.ac
index f465b3e..84fdf0d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1082,9 +1082,9 @@ case $host_os in
AC_SUBST(CROSSTEST,"")
if test "$cross_compiling" = "no"
then
- AC_CHECK_PROGS(CROSSCC,i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc,false)
- AC_CHECK_PROGS(DLLTOOL,i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool,false)
- AC_CHECK_PROGS(CROSSWINDRES,i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw-windres,false)
+ AC_CHECK_PROGS(CROSSCC,i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw32-gcc mingw-gcc,false)
+ AC_CHECK_PROGS(DLLTOOL,i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw32-dlltool mingw-dlltool,false)
+ AC_CHECK_PROGS(CROSSWINDRES,i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw32-windres mingw-windres,false)
if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
fi
;;
Module: wine
Branch: master
Commit: 3cb50048760afefc61d8dcb6df599a857bb069c4
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3cb50048760afefc61d8dcb6d…
Author: James Hawkins <truiken(a)gmail.com>
Date: Fri Oct 13 14:03:55 2006 -0700
clusapi: Add the clusapi.h public header.
---
dlls/clusapi/clusapi.c | 1 +
include/Makefile.in | 1 +
include/clusapi.h | 24 ++++++++++++++++++++++++
3 files changed, 26 insertions(+), 0 deletions(-)
diff --git a/dlls/clusapi/clusapi.c b/dlls/clusapi/clusapi.c
index 4c34ed3..78dfd0f 100644
--- a/dlls/clusapi/clusapi.c
+++ b/dlls/clusapi/clusapi.c
@@ -22,6 +22,7 @@ #include <stdarg.h>
#include "windef.h"
#include "winbase.h"
+#include "clusapi.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(clusapi);
diff --git a/include/Makefile.in b/include/Makefile.in
index 931c75c..2dc8fb0 100644
--- a/include/Makefile.in
+++ b/include/Makefile.in
@@ -78,6 +78,7 @@ WINDOWS_INCLUDES = \
cderr.h \
cguid.h \
cierror.h \
+ clusapi.h \
commctrl.h \
commdlg.h \
compobj.h \
diff --git a/include/clusapi.h b/include/clusapi.h
new file mode 100644
index 0000000..f79c150
--- /dev/null
+++ b/include/clusapi.h
@@ -0,0 +1,24 @@
+/*
+ * Copyright 2006 James Hawkins
+ *
+ * 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
+ */
+
+#ifndef __WINE_CLUSAPI_H
+#define __WINE_CLUSAPI_H
+
+DWORD WINAPI GetNodeClusterState(LPCWSTR lpszNodeName, DWORD *pdwClusterState);
+
+#endif /* __WINE_CLUSAPI_H */