Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
510ed24f
Commit
510ed24f
authored
Nov 29, 2009
by
Rob Shearman
Committed by
Alexandre Julliard
Nov 30, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Cope with double quotes in paths for libraries to be loaded from the registry.
parent
f3560ece
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
compobj.c
dlls/ole32/compobj.c
+10
-0
marshal.c
dlls/ole32/tests/marshal.c
+1
-1
No files found.
dlls/ole32/compobj.c
View file @
510ed24f
...
...
@@ -828,6 +828,16 @@ static DWORD COM_RegReadPath(HKEY hkeyroot, const WCHAR *keyname, const WCHAR *v
if
(
keytype
==
REG_EXPAND_SZ
)
{
if
(
dstlen
<=
ExpandEnvironmentStringsW
(
src
,
dst
,
dstlen
))
ret
=
ERROR_MORE_DATA
;
}
else
{
const
WCHAR
*
quote_start
;
quote_start
=
strchrW
(
src
,
'\"'
);
if
(
quote_start
)
{
const
WCHAR
*
quote_end
=
strchrW
(
quote_start
+
1
,
'\"'
);
if
(
quote_end
)
{
memmove
(
src
,
quote_start
+
1
,
(
quote_end
-
quote_start
-
1
)
*
sizeof
(
WCHAR
));
src
[
quote_end
-
quote_start
-
1
]
=
'\0'
;
}
}
lstrcpynW
(
dst
,
src
,
dstlen
);
}
}
...
...
dlls/ole32/tests/marshal.c
View file @
510ed24f
...
...
@@ -2293,7 +2293,7 @@ static void reg_unreg_wine_test_class(BOOL Register)
{
error
=
RegCreateKeyEx
(
HKEY_CLASSES_ROOT
,
buffer
,
0
,
NULL
,
0
,
KEY_SET_VALUE
,
NULL
,
&
hkey
,
&
dwDisposition
);
ok
(
error
==
ERROR_SUCCESS
,
"RegCreateKeyEx failed with error %d
\n
"
,
error
);
error
=
RegSetValueEx
(
hkey
,
NULL
,
0
,
REG_SZ
,
(
const
unsigned
char
*
)
"
ole32.dll"
,
strlen
(
"ole32.dll
"
)
+
1
);
error
=
RegSetValueEx
(
hkey
,
NULL
,
0
,
REG_SZ
,
(
const
unsigned
char
*
)
"
\"
ole32.dll
\"
\"
a
\"
"
,
strlen
(
"
\"
ole32.dll
\"
\"
a
\"
"
)
+
1
);
ok
(
error
==
ERROR_SUCCESS
,
"RegSetValueEx failed with error %d
\n
"
,
error
);
RegCloseKey
(
hkey
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment