mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-01-28 22:04:43 -08:00
Added patch to skip invalid entries in GetPrivateProfileString16.
This commit is contained in:
parent
8af8164874
commit
632a8a163b
@ -34,11 +34,12 @@ Wine. All those differences are also documented on the
|
||||
Included bug fixes and improvements
|
||||
-----------------------------------
|
||||
|
||||
**Bug fixes and features included in the next upcoming release [3]:**
|
||||
**Bug fixes and features included in the next upcoming release [4]:**
|
||||
|
||||
* Add information for delayed end of DST in Europe/Istanbul
|
||||
* Check handle type for HSPFILEQ handles ([Wine Bug #12332](https://bugs.winehq.org/show_bug.cgi?id=12332))
|
||||
* Fix font loading in Capella ([Wine Bug #12377](https://bugs.winehq.org/show_bug.cgi?id=12377))
|
||||
* Skip invalid entries in GetPrivateProfileString16 ([Wine Bug #9919](https://bugs.winehq.org/show_bug.cgi?id=9919))
|
||||
|
||||
|
||||
**Bug fixes and features in Wine Staging 1.8-rc1 [268]:**
|
||||
|
@ -0,0 +1,40 @@
|
||||
From 29e32e5ad41bbd4a2c19202bea2175cfb11c17b1 Mon Sep 17 00:00:00 2001
|
||||
From: Bruno Jesus <00cpxxx@gmail.com>
|
||||
Date: Sat, 28 Nov 2015 22:47:38 +0100
|
||||
Subject: krnl386.exe16: Skip invalid entries in GetPrivateProfileString16.
|
||||
|
||||
---
|
||||
dlls/krnl386.exe16/file.c | 10 +++++++++-
|
||||
1 file changed, 9 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/dlls/krnl386.exe16/file.c b/dlls/krnl386.exe16/file.c
|
||||
index 77908c2..b66b753 100644
|
||||
--- a/dlls/krnl386.exe16/file.c
|
||||
+++ b/dlls/krnl386.exe16/file.c
|
||||
@@ -539,6 +539,9 @@ INT16 WINAPI GetPrivateProfileString16( LPCSTR section, LPCSTR entry,
|
||||
LPCSTR def_val, LPSTR buffer,
|
||||
UINT16 len, LPCSTR filename )
|
||||
{
|
||||
+ TRACE("(%s, %s, %s, %p, %u, %s)\n", debugstr_a(section), debugstr_a(entry),
|
||||
+ debugstr_a(def_val), buffer, len, debugstr_a(filename));
|
||||
+
|
||||
if (!section)
|
||||
{
|
||||
if (buffer && len) buffer[0] = 0;
|
||||
@@ -572,7 +575,12 @@ INT16 WINAPI GetPrivateProfileString16( LPCSTR section, LPCSTR entry,
|
||||
{
|
||||
char *p = strchr( src, '=' );
|
||||
|
||||
- if (!p) p = src + strlen(src);
|
||||
+ /* A valid entry is formed by name = value */
|
||||
+ if (!p)
|
||||
+ {
|
||||
+ src += strlen(src) + 1;
|
||||
+ continue;
|
||||
+ }
|
||||
if (p - src < len)
|
||||
{
|
||||
memcpy( buffer, src, p - src );
|
||||
--
|
||||
2.6.2
|
||||
|
1
patches/krnl386.exe-GetPrivateProfileString/definition
Normal file
1
patches/krnl386.exe-GetPrivateProfileString/definition
Normal file
@ -0,0 +1 @@
|
||||
Fixes: [9919] Skip invalid entries in GetPrivateProfileString16
|
@ -165,6 +165,7 @@ patch_enable_all ()
|
||||
enable_kernel32_SetFileInformationByHandle="$1"
|
||||
enable_kernel32_TimezoneInformation_Registry="$1"
|
||||
enable_kernel32_VerifyVersionInfo="$1"
|
||||
enable_krnl386_exe_GetPrivateProfileString="$1"
|
||||
enable_libs_Debug_Channel="$1"
|
||||
enable_libs_Unicode_Collation="$1"
|
||||
enable_makedep_PARENTSPEC="$1"
|
||||
@ -602,6 +603,9 @@ patch_enable ()
|
||||
kernel32-VerifyVersionInfo)
|
||||
enable_kernel32_VerifyVersionInfo="$2"
|
||||
;;
|
||||
krnl386.exe-GetPrivateProfileString)
|
||||
enable_krnl386_exe_GetPrivateProfileString="$2"
|
||||
;;
|
||||
libs-Debug_Channel)
|
||||
enable_libs_Debug_Channel="$2"
|
||||
;;
|
||||
@ -3630,6 +3634,21 @@ if test "$enable_kernel32_VerifyVersionInfo" -eq 1; then
|
||||
) >> "$patchlist"
|
||||
fi
|
||||
|
||||
# Patchset krnl386.exe-GetPrivateProfileString
|
||||
# |
|
||||
# | This patchset fixes the following Wine bugs:
|
||||
# | * [#9919] Skip invalid entries in GetPrivateProfileString16
|
||||
# |
|
||||
# | Modified files:
|
||||
# | * dlls/krnl386.exe16/file.c
|
||||
# |
|
||||
if test "$enable_krnl386_exe_GetPrivateProfileString" -eq 1; then
|
||||
patch_apply krnl386.exe-GetPrivateProfileString/0001-krnl386.exe16-Skip-invalid-entries-in-GetPrivateProf.patch
|
||||
(
|
||||
echo '+ { "Bruno Jesus", "krnl386.exe16: Skip invalid entries in GetPrivateProfileString16.", 1 },';
|
||||
) >> "$patchlist"
|
||||
fi
|
||||
|
||||
# Patchset libs-Debug_Channel
|
||||
# |
|
||||
# | Modified files:
|
||||
|
@ -13,6 +13,7 @@ wine-staging (1.8~rc2) UNRELEASED; urgency=low
|
||||
upstream).
|
||||
* Added patch to implement check for invalid handle type for HSPFILEQ handles.
|
||||
* Added patch for delayed end of DST in Europe/Istanbul.
|
||||
* Added patch to skip invalid entries in GetPrivateProfileString16.
|
||||
-- Sebastian Lackner <sebastian@fds-team.de> Wed, 25 Nov 2015 20:21:46 +0100
|
||||
|
||||
wine-staging (1.8~rc1) unstable; urgency=low
|
||||
|
Loading…
x
Reference in New Issue
Block a user