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
88f6e898
Commit
88f6e898
authored
Jan 27, 2012
by
Erich Hoover
Committed by
Alexandre Julliard
Jan 27, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
itss: Enlarge buffer to include space for a concatenated value.
parent
8ab4f85b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
storage.c
dlls/itss/storage.c
+6
-5
No files found.
dlls/itss/storage.c
View file @
88f6e898
...
...
@@ -406,7 +406,6 @@ static HRESULT WINAPI ITSS_IStorageImpl_OpenStorage(
IStorage
**
ppstg
)
{
ITSS_IStorageImpl
*
This
=
impl_from_IStorage
(
iface
);
static
const
WCHAR
szRoot
[]
=
{
'/'
,
0
};
struct
chmFile
*
chmfile
;
WCHAR
*
path
,
*
p
;
DWORD
len
;
...
...
@@ -418,7 +417,7 @@ static HRESULT WINAPI ITSS_IStorageImpl_OpenStorage(
if
(
!
chmfile
)
return
E_FAIL
;
len
=
strlenW
(
This
->
dir
)
+
strlenW
(
pwcsName
)
+
1
;
len
=
strlenW
(
This
->
dir
)
+
strlenW
(
pwcsName
)
+
2
;
/* need room for a terminating slash */
path
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
)
);
strcpyW
(
path
,
This
->
dir
);
...
...
@@ -435,10 +434,12 @@ static HRESULT WINAPI ITSS_IStorageImpl_OpenStorage(
*
p
=
'/'
;
}
if
(
*--
p
==
'/'
)
/* add a terminating slash if one does not already exist */
if
(
*
(
p
-
1
)
!=
'/'
)
{
*
p
++
=
'/'
;
*
p
=
0
;
strcatW
(
path
,
szRoot
);
}
TRACE
(
"Resolving %s
\n
"
,
debugstr_w
(
path
));
...
...
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