Module: wine
Branch: master
Commit: 063b3bc9dbe359611bbe4bc39245649a9576ef8e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=063b3bc9dbe359611bbe4bc39…
Author: Jactry Zeng <wine(a)jactry.com>
Date: Wed Aug 20 16:11:52 2014 +0800
riched20: Pass count of character into ME_WordBreakProc() instead of count of byte.
---
dlls/riched20/string.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/dlls/riched20/string.c b/dlls/riched20/string.c
index 12e4ad7..44726b3 100644
--- a/dlls/riched20/string.c
+++ b/dlls/riched20/string.c
@@ -125,8 +125,7 @@ ME_WordBreakProc(LPWSTR s, INT start, INT len, INT code)
/* FIXME: Native also knows about punctuation */
TRACE("s==%s, start==%d, len==%d, code==%d\n",
debugstr_wn(s, len), start, len, code);
- /* convert number of bytes to number of characters. */
- len /= sizeof(WCHAR);
+
switch (code)
{
case WB_ISDELIMITER:
@@ -154,7 +153,7 @@ int
ME_CallWordBreakProc(ME_TextEditor *editor, WCHAR *str, INT len, INT start, INT code)
{
if (!editor->pfnWordBreak) {
- return ME_WordBreakProc(str, start, len * sizeof(WCHAR), code);
+ return ME_WordBreakProc(str, start, len, code);
} else if (!editor->bEmulateVersion10) {
/* MSDN lied about the third parameter for EditWordBreakProc being the number
* of characters, it is actually the number of bytes of the string. */
Module: wine
Branch: master
Commit: 3a372f26e9c35d1edab4cdb58a97e57cae373e8d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3a372f26e9c35d1edab4cdb58…
Author: André Hentschel <nerv(a)dawncrow.de>
Date: Wed Aug 20 23:05:10 2014 +0200
wpcap: Add version resource.
---
dlls/wpcap/Makefile.in | 2 ++
dlls/wpcap/version.rc | 26 ++++++++++++++++++++++++++
2 files changed, 28 insertions(+)
diff --git a/dlls/wpcap/Makefile.in b/dlls/wpcap/Makefile.in
index 5caffbc..e44613f 100644
--- a/dlls/wpcap/Makefile.in
+++ b/dlls/wpcap/Makefile.in
@@ -4,3 +4,5 @@ EXTRALIBS = @LIBPCAP@
C_SRCS = \
wpcap.c
+
+RC_SRCS = version.rc
diff --git a/dlls/wpcap/version.rc b/dlls/wpcap/version.rc
new file mode 100644
index 0000000..d60cec4
--- /dev/null
+++ b/dlls/wpcap/version.rc
@@ -0,0 +1,26 @@
+/*
+ * Copyright 2014 André Hentschel
+ *
+ * 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
+ */
+
+#define WINE_FILEDESCRIPTION_STR "wpcap.dll Dynamic Link Library - based on libpcap 1.0"
+#define WINE_FILENAME_STR "wpcap.dll"
+#define WINE_FILEVERSION 4,1,0,2980
+#define WINE_FILEVERSION_STR "4.1.0.2980"
+#define WINE_PRODUCTVERSION 4,1,0,2980
+#define WINE_PRODUCTVERSION_STR "4.1.0.2980"
+
+#include "wine/wine_common_ver.rc"