Thomas Mullaly : include: Added basic header for strsafe.

Alexandre Julliard julliard at winehq.org
Mon Nov 29 13:38:35 CST 2010


Module: wine
Branch: master
Commit: 4e07082eda63480dfa6557c6f48b34cf05f51ad4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4e07082eda63480dfa6557c6f48b34cf05f51ad4

Author: Thomas Mullaly <thomas.mullaly at gmail.com>
Date:   Wed Nov 17 18:27:30 2010 -0500

include: Added basic header for strsafe.

---

 include/Makefile.in |    1 +
 include/strsafe.h   |   32 ++++++++++++++++++++++++++++++++
 2 files changed, 33 insertions(+), 0 deletions(-)

diff --git a/include/Makefile.in b/include/Makefile.in
index e7c75ee..ae0e842 100644
--- a/include/Makefile.in
+++ b/include/Makefile.in
@@ -474,6 +474,7 @@ SRCDIR_INCLUDES = \
 	sspi.h \
 	sti.h \
 	storage.h \
+	strsafe.h \
 	svrapi.h \
 	t2embapi.h \
 	tapi.h \
diff --git a/include/strsafe.h b/include/strsafe.h
new file mode 100644
index 0000000..2beb53f
--- /dev/null
+++ b/include/strsafe.h
@@ -0,0 +1,32 @@
+/*
+ * Copyright 2010 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
+ */
+#ifndef __WINE_STRSAFE_H
+#define __WINE_STRSAFE_H
+
+#include <stdio.h>
+#include <string.h>
+#include <stdarg.h>
+
+/* Windows version includes this header. */
+/* #include <specstring.h> */
+
+#define STRSAFE_E_INSUFFICIENT_BUFFER   ((HRESULT)0x8007007AL)
+#define STRSAFE_E_INVALID_PARAM         ((HRESULT)0x80070075L)
+#define STRSAFE_E_END_OF_FILE           ((HRESULT)0x80070026L)
+
+#endif




More information about the wine-cvs mailing list