Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
1d5575b9
Commit
1d5575b9
authored
Jul 06, 2007
by
Damjan Jovanovic
Committed by
Alexandre Julliard
Jul 06, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: DragQueryFile doesn't count the null terminator.
parent
1647de57
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
10 deletions
+3
-10
shell.c
dlls/shell32/shell.c
+1
-3
shellole.c
dlls/shell32/shellole.c
+2
-7
No files found.
dlls/shell32/shell.c
View file @
1d5575b9
...
...
@@ -121,10 +121,8 @@ UINT16 WINAPI DragQueryFile16(
}
i
=
strlen
(
lpDrop
);
i
++
;
if
(
!
lpszFile
)
goto
end
;
/* needed buffer size */
i
=
(
wLength
>
i
)
?
i
:
wLength
;
lstrcpynA
(
lpszFile
,
lpDrop
,
i
);
lstrcpynA
(
lpszFile
,
lpDrop
,
wLength
);
end:
GlobalUnlock16
(
hDrop
);
return
i
;
...
...
dlls/shell32/shellole.c
View file @
1d5575b9
...
...
@@ -621,10 +621,8 @@ UINT WINAPI DragQueryFileA(
}
i
=
strlen
(
lpDrop
);
i
++
;
if
(
!
lpszFile
)
goto
end
;
/* needed buffer size */
i
=
(
lLength
>
i
)
?
i
:
lLength
;
lstrcpynA
(
lpszFile
,
lpDrop
,
i
);
lstrcpynA
(
lpszFile
,
lpDrop
,
lLength
);
end:
GlobalUnlock
(
hDrop
);
return
i
;
...
...
@@ -679,11 +677,8 @@ UINT WINAPI DragQueryFileW(
}
i
=
strlenW
(
lpwDrop
);
i
++
;
if
(
!
lpszwFile
)
goto
end
;
/* needed buffer size */
i
=
(
lLength
>
i
)
?
i
:
lLength
;
lstrcpynW
(
lpszwFile
,
lpwDrop
,
i
);
lstrcpynW
(
lpszwFile
,
lpwDrop
,
lLength
);
end:
GlobalUnlock
(
hDrop
);
return
i
;
...
...
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