Added patch to recognize localhost as local machine in wbemprox.

This commit is contained in:
Sebastian Lackner 2015-04-17 06:29:29 +02:00
parent d8cb439f29
commit 04afcf114c
5 changed files with 49 additions and 1 deletions

View File

@ -39,12 +39,13 @@ Wine. All those differences are also documented on the
Included bug fixes and improvements
-----------------------------------
**Bug fixes and features included in the next upcoming release [5]:**
**Bug fixes and features included in the next upcoming release [6]:**
* Add support for process specific debug channels
* Calculate msvcrt exponential math operations with higher precision ([Wine Bug #37149](https://bugs.winehq.org/show_bug.cgi?id=37149))
* Fix regression caused by blacklisting supported OpenGL extensions ([Wine Bug #38264](https://bugs.winehq.org/show_bug.cgi?id=38264))
* Properly handle closing sockets during a select call ([Wine Bug #38399](https://bugs.winehq.org/show_bug.cgi?id=38399))
* Recognize localhost as local machine in wbemprox
* Reset device state in SysKeyboard*Impl_Acquire ([Wine Bug #11607](https://bugs.winehq.org/show_bug.cgi?id=11607))

1
debian/changelog vendored
View File

@ -10,6 +10,7 @@ wine-staging (1.7.41) UNRELEASED; urgency=low
* Added patch to reset device state in SysKeyboard*Impl_Acquire.
* Added patch to properly handle closing sockets during a select call.
* Added patch for support of process specific debug channels.
* Added patch to recognize localhost as local machine in wbemprox.
* Added tests for RtlIpv6AddressToString and RtlIpv6AddressToStringEx.
* Removed patches to fix invalid memory access in get_registry_locale_info (accepted upstream).
* Removed patches to avoid repeated FIXMEs in PsLookupProcessByProcessId stub (accepted upstream).

View File

@ -213,6 +213,7 @@ patch_enable_all ()
enable_vcomp_Stub_Functions="$1"
enable_version_VerQueryValue="$1"
enable_version_VersionInfoEx="$1"
enable_wbemprox_Localhost="$1"
enable_wiaservc_IEnumWIA_DEV_INFO="$1"
enable_windowscodecs_TIFF_Decoder="$1"
enable_wine_inf_Performance="$1"
@ -708,6 +709,9 @@ patch_enable ()
version-VersionInfoEx)
enable_version_VersionInfoEx="$2"
;;
wbemprox-Localhost)
enable_wbemprox_Localhost="$2"
;;
wiaservc-IEnumWIA_DEV_INFO)
enable_wiaservc_IEnumWIA_DEV_INFO="$2"
;;
@ -4416,6 +4420,18 @@ if test "$enable_version_VersionInfoEx" -eq 1; then
) >> "$patchlist"
fi
# Patchset wbemprox-Localhost
# |
# | Modified files:
# | * dlls/wbemprox/wbemlocator.c
# |
if test "$enable_wbemprox_Localhost" -eq 1; then
patch_apply wbemprox-Localhost/0001-wbemprox-Allow-connecting-to-localhost.patch
(
echo '+ { "Michael Müller", "wbemprox: Allow connecting to localhost.", 1 },';
) >> "$patchlist"
fi
# Patchset wiaservc-IEnumWIA_DEV_INFO
# |
# | This patchset fixes the following Wine bugs:

View File

@ -0,0 +1,29 @@
From 87053e0d99e5e8691b571729e66f9c3ff8272569 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michael=20M=C3=BCller?= <michael@fds-team.de>
Date: Thu, 16 Apr 2015 21:27:22 +0200
Subject: wbemprox: Allow connecting to localhost.
---
dlls/wbemprox/wbemlocator.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/wbemprox/wbemlocator.c b/dlls/wbemprox/wbemlocator.c
index 463e6d4..b50d7cb 100644
--- a/dlls/wbemprox/wbemlocator.c
+++ b/dlls/wbemprox/wbemlocator.c
@@ -89,10 +89,11 @@ static HRESULT WINAPI wbem_locator_QueryInterface(
static BOOL is_local_machine( const WCHAR *server )
{
static const WCHAR dotW[] = {'.',0};
+ static const WCHAR localhostW[] = {'l','o','c','a','l','h','o','s','t',0};
WCHAR buffer[MAX_COMPUTERNAME_LENGTH + 1];
DWORD len = sizeof(buffer) / sizeof(buffer[0]);
- if (!server || !strcmpW( server, dotW )) return TRUE;
+ if (!server || !strcmpW( server, dotW ) || !strcmpW( server, localhostW )) return TRUE;
if (GetComputerNameW( buffer, &len ) && !strcmpiW( server, buffer )) return TRUE;
return FALSE;
}
--
2.3.5

View File

@ -0,0 +1 @@
Fixes: Recognize localhost as local machine in wbemprox