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
d58bd680
Commit
d58bd680
authored
Dec 17, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Dec 17, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Fix a crash with GetLongPathNameW and UNC path names.
parent
b4b7724a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
path.c
dlls/kernel32/path.c
+9
-3
No files found.
dlls/kernel32/path.c
View file @
d58bd680
...
...
@@ -313,9 +313,15 @@ DWORD WINAPI GetLongPathNameW( LPCWSTR shortpath, LPWSTR longpath, DWORD longlen
if
(
shortpath
[
0
]
==
'\\'
&&
shortpath
[
1
]
==
'\\'
)
{
ERR
(
"UNC pathname %s
\n
"
,
debugstr_w
(
shortpath
));
lstrcpynW
(
longpath
,
shortpath
,
longlen
);
return
strlenW
(
longpath
);
FIXME
(
"UNC pathname %s
\n
"
,
debugstr_w
(
shortpath
));
tmplen
=
strlenW
(
shortpath
);
if
(
tmplen
<
longlen
)
{
if
(
longpath
!=
shortpath
)
strcpyW
(
longpath
,
shortpath
);
return
tmplen
;
}
return
tmplen
+
1
;
}
unixabsolute
=
(
shortpath
[
0
]
==
'/'
);
...
...
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