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
d0f86f64
Commit
d0f86f64
authored
Oct 28, 2003
by
Uwe Bonnes
Committed by
Alexandre Julliard
Oct 28, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get_full_path_helper: Handle the case \\.\\ as intended; fix length
arguments for memmove.
parent
16c3f341
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
path.c
dlls/ntdll/path.c
+2
-2
No files found.
dlls/ntdll/path.c
View file @
d0f86f64
...
...
@@ -499,7 +499,7 @@ static ULONG get_full_path_helper(LPCWSTR name, LPWSTR buffer, ULONG size)
/* either collapse \foo\.. into \ or \.. into \ */
if
(
prev
<
buffer
+
mark
)
prev
=
p
-
1
;
reqsize
-=
(
p
+
2
-
prev
)
*
sizeof
(
WCHAR
);
memmove
(
prev
,
p
+
2
,
buffer
+
reqsize
-
prev
+
sizeof
(
WCHAR
));
memmove
(
prev
,
p
+
2
,
reqsize
+
sizeof
(
WCHAR
)
-
(
prev
-
buffer
)
*
sizeof
(
WCHAR
));
p
=
prev
;
}
break
;
...
...
@@ -511,7 +511,7 @@ static ULONG get_full_path_helper(LPCWSTR name, LPWSTR buffer, ULONG size)
break
;
case
'\\'
:
reqsize
-=
2
*
sizeof
(
WCHAR
);
memmove
(
p
tr
,
ptr
+
2
,
buffer
+
reqsize
-
ptr
+
sizeof
(
WCHAR
));
memmove
(
p
,
p
+
2
,
reqsize
+
sizeof
(
WCHAR
)
-
(
p
-
buffer
)
*
sizeof
(
WCHAR
));
break
;
}
}
...
...
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