Module: wine
Branch: master
Commit: 5d14f02f6a70747a1c0b86a76360a24353fba56c
URL: https://source.winehq.org/git/wine.git/?a=commit;h=5d14f02f6a70747a1c0b86a7…
Author: Isira Seneviratne <isirasen96(a)gmail.com>
Date: Wed Mar 27 08:21:36 2019 +0530
start: Correct capitalization of "Windows Explorer".
Signed-off-by: Isira Seneviratne <isirasen96(a)gmail.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
programs/start/start.rc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/programs/start/start.rc b/programs/start/start.rc
index a818ddf..ad3aaee 100644
--- a/programs/start/start.rc
+++ b/programs/start/start.rc
@@ -49,8 +49,8 @@ Options:\n\
/affinity mask Start the program with the specified affinity mask.\n\
/wait Wait for the started program to finish, then exit with its\n\
exit code.\n\
-/unix Use a Unix filename and start the file like windows\n\
- explorer.\n\
+/unix Use a Unix filename and start the file like Windows\n\
+ Explorer.\n\
/ProgIDOpen Open a document using the specified progID.\n\
/? Display this help and exit.\n"
Module: wine
Branch: master
Commit: d6060b7cf76cd1f45327b68f65caef8ea9da96a7
URL: https://source.winehq.org/git/wine.git/?a=commit;h=d6060b7cf76cd1f45327b68f…
Author: Alexandre Julliard <julliard(a)winehq.org>
Date: Wed Apr 3 19:24:02 2019 +0200
winecrt0: Add a fallback implementation of __wine_dbg_strdup().
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
dlls/winecrt0/Makefile.in | 1 +
dlls/winecrt0/debug.c | 62 +++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 63 insertions(+)
diff --git a/dlls/winecrt0/Makefile.in b/dlls/winecrt0/Makefile.in
index 6b7c3e8..79ba92f 100644
--- a/dlls/winecrt0/Makefile.in
+++ b/dlls/winecrt0/Makefile.in
@@ -1,6 +1,7 @@
MODULE = libwinecrt0.a
C_SRCS = \
+ debug.c \
delay_load.c \
dll_entry.c \
dll_main.c \
diff --git a/dlls/winecrt0/debug.c b/dlls/winecrt0/debug.c
new file mode 100644
index 0000000..1eb5a46
--- /dev/null
+++ b/dlls/winecrt0/debug.c
@@ -0,0 +1,62 @@
+/*
+ * Fallbacks for debugging functions when running on Windows
+ *
+ * Copyright 2019 Alexandre Julliard
+ *
+ * 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
+ */
+
+#ifdef _WIN32
+
+#include "config.h"
+#include "wine/port.h"
+
+#include "windef.h"
+#include "winbase.h"
+#include "wine/debug.h"
+
+static const char * (__cdecl *p__wine_dbg_strdup)( const char *str );
+
+static void load_func( void **func, const char *name, void *def )
+{
+ if (!*func)
+ {
+ HMODULE module = GetModuleHandleA( "ntdll.dll" );
+ void *proc = GetProcAddress( module, name );
+ interlocked_xchg_ptr( func, proc ? proc : def );
+ }
+}
+#define LOAD_FUNC(name) load_func( (void **)&p ## name, #name, fallback ## name )
+
+/* FIXME: this is not 100% thread-safe */
+static const char * __cdecl fallback__wine_dbg_strdup( const char *str )
+{
+ static char *list[32];
+ static int pos;
+ char *ret = _strdup( str );
+ int idx;
+
+ idx = interlocked_xchg_add( &pos, 1 ) % ARRAY_SIZE(list);
+ free( interlocked_xchg_ptr( (void **)&list[idx], ret ));
+ return ret;
+}
+
+const char * __cdecl __wine_dbg_strdup( const char *str )
+{
+ LOAD_FUNC( __wine_dbg_strdup );
+ return p__wine_dbg_strdup( str );
+}
+
+#endif /* _WIN32 */