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
7760413f
Commit
7760413f
authored
Oct 04, 2003
by
Eric Pouech
Committed by
Alexandre Julliard
Oct 04, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a couple of bugs in RtlGetFullPathName_U.
parent
954765e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
path.c
dlls/ntdll/path.c
+7
-3
No files found.
dlls/ntdll/path.c
View file @
7760413f
...
...
@@ -397,7 +397,11 @@ static ULONG get_full_path_helper(LPCWSTR name, LPWSTR buffer, ULONG size)
case
RELATIVE_PATH
:
/* foo */
reqsize
+=
cd
->
Length
;
if
(
reqsize
<=
size
)
strcpyW
(
buffer
,
cd
->
Buffer
);
if
(
reqsize
<=
size
)
{
memcpy
(
buffer
,
cd
->
Buffer
,
cd
->
Length
);
buffer
[
cd
->
Length
/
sizeof
(
WCHAR
)]
=
0
;
}
if
(
cd
->
Buffer
[
1
]
!=
':'
)
{
ptr
=
strchrW
(
cd
->
Buffer
+
2
,
'\\'
);
...
...
@@ -501,7 +505,7 @@ static ULONG get_full_path_helper(LPCWSTR name, LPWSTR buffer, ULONG size)
break
;
case
'\\'
:
reqsize
-=
2
*
sizeof
(
WCHAR
);
memmove
(
ptr
+
2
,
ptr
,
buffer
+
reqsize
-
ptr
+
sizeof
(
WCHAR
));
memmove
(
ptr
,
ptr
+
2
,
buffer
+
reqsize
-
ptr
+
sizeof
(
WCHAR
));
break
;
}
}
...
...
@@ -518,7 +522,7 @@ done:
*
* Returns the number of bytes written to buffer (not including the
* terminating NULL) if the function succeeds, or the required number of bytes
* (including the terminating NULL) if the buffer is to small.
* (including the terminating NULL) if the buffer is to
o
small.
*
* file_part will point to the filename part inside buffer (except if we use
* DOS device name, in which case file_in_buf is NULL)
...
...
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