Module: wine
Branch: master
Commit: 8f07e6932b23acf5a3233dc55bbe7a426f35fc28
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8f07e6932b23acf5a3233dc55…
Author: Rob Shearman <robertshearman(a)gmail.com>
Date: Tue Mar 24 11:25:35 2009 +0000
services: Add a ref count to the service entry in svcctl_CreateServiceW.
The ref count will be released by SC_RPC_HANDLE_destroy when the
returned handle is destroyed.
Change svcctl_OpenServiceW to use InterlockedIncrement to increment
the ref count since the service is in the database and therefore could
be shared and SC_RPC_HANDLE_destroy doesn't take the scmdatabase lock
when decrementing the ref count.
---
programs/services/rpc.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/programs/services/rpc.c b/programs/services/rpc.c
index 7c09f55..22391c2 100644
--- a/programs/services/rpc.c
+++ b/programs/services/rpc.c
@@ -309,7 +309,7 @@ DWORD svcctl_OpenServiceW(
scmdatabase_lock_shared(manager->db);
entry = scmdatabase_find_service(manager->db, lpServiceName);
if (entry != NULL)
- entry->ref_count++;
+ InterlockedIncrement(&entry->ref_count);
scmdatabase_unlock(manager->db);
if (entry == NULL)
@@ -358,6 +358,7 @@ DWORD svcctl_CreateServiceW(
err = service_create(lpServiceName, &entry);
if (err != ERROR_SUCCESS)
return err;
+ entry->ref_count = 1;
entry->config.dwServiceType = entry->status.dwServiceType = dwServiceType;
entry->config.dwStartType = dwStartType;
entry->config.dwErrorControl = dwErrorControl;
Module: wine
Branch: master
Commit: 6789fa85448c2cf904cde0360f443e52cf23bd1a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6789fa85448c2cf904cde0360…
Author: Michael Stefaniuc <mstefani(a)redhat.de>
Date: Tue Mar 24 11:00:06 2009 +0100
msi: Add the Romanian translation.
---
dlls/msi/msi.rc | 1 +
dlls/msi/msi_Ro.rc | 37 +++++++++++++++++++++++++++++++++++++
2 files changed, 38 insertions(+), 0 deletions(-)
diff --git a/dlls/msi/msi.rc b/dlls/msi/msi.rc
index 4091184..ffcb0c1 100644
--- a/dlls/msi/msi.rc
+++ b/dlls/msi/msi.rc
@@ -42,6 +42,7 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
#include "msi_No.rc"
#include "msi_Pl.rc"
#include "msi_Pt.rc"
+#include "msi_Ro.rc"
#include "msi_Ru.rc"
#include "msi_Si.rc"
#include "msi_Sv.rc"
diff --git a/dlls/msi/msi_Ro.rc b/dlls/msi/msi_Ro.rc
new file mode 100644
index 0000000..a167d05
--- /dev/null
+++ b/dlls/msi/msi_Ro.rc
@@ -0,0 +1,37 @@
+/*
+ * Copyright 2005 Mike McCormack
+ * Copyright 2009 Michael Stefaniuc
+ *
+ * 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
+ */
+
+LANGUAGE LANG_ROMANIAN, SUBLANG_NEUTRAL
+
+#pragma code_page(65001)
+
+STRINGTABLE DISCARDABLE
+{
+ 4 "Pachetul de instalare menționat nu a putut fi deschis. Verificați calea și încercați din nou."
+ 5 "calea %s nu a fost găsită"
+ 9 "inserați discul %s"
+ 10 "parameteri greșiți"
+ 11 "introduceți fișierul care conține %s"
+ 12 "lipsește sursa de instalare pentru această caracteristică"
+ 13 "lipsește unitatea de rețea pentru această caracteristică"
+ 14 "caracteristică de la:"
+ 15 "selectați fișierul care conține %s"
+}
+
+#pragma code_page(default)