You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2002/02/27 18:39:06 UTC
cvs commit: apr/locks/win32 proc_mutex.c
wrowe 02/02/27 09:39:06
Modified: locks/win32 proc_mutex.c
Log:
Unnamed cross proc locks are quite legal on win32, thank you.
Revision Changes Path
1.6 +6 -4 apr/locks/win32/proc_mutex.c
Index: proc_mutex.c
===================================================================
RCS file: /home/cvs/apr/locks/win32/proc_mutex.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- proc_mutex.c 8 Jan 2002 05:58:38 -0000 1.5
+++ proc_mutex.c 27 Feb 2002 17:39:06 -0000 1.6
@@ -87,10 +87,12 @@
* running on Win2000, Global\ and Local\ are ignored. These
* prefixes are only valid on Win2000+
*/
- if (apr_os_level >= APR_WIN_2000)
- fname = apr_pstrcat(pool, "Global\\", fname, NULL);
- else
- fname = apr_pstrdup(pool, fname);
+ if (fname) {
+ if (apr_os_level >= APR_WIN_2000)
+ fname = apr_pstrcat(pool, "Global\\", fname, NULL);
+ else
+ fname = apr_pstrdup(pool, fname);
+ }
hMutex = CreateMutex(&sec, FALSE, fname);
if (!hMutex) {