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
d2e9856a
Commit
d2e9856a
authored
Jun 02, 2015
by
Akihiro Sagawa
Committed by
Alexandre Julliard
Jun 02, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Skip buffer allocation when querying drop file numbers.
parent
37d7d6f8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
shellole.c
dlls/shell32/shellole.c
+2
-2
shellole.c
dlls/shell32/tests/shellole.c
+1
-1
No files found.
dlls/shell32/shellole.c
View file @
d2e9856a
...
...
@@ -578,7 +578,7 @@ UINT WINAPI DragQueryFileA(
if
(
lpDropFileStruct
->
fWide
)
{
LPWSTR
lpszFileW
=
NULL
;
if
(
lpszFile
)
{
if
(
lpszFile
&&
lFile
!=
0xFFFFFFFF
)
{
lpszFileW
=
HeapAlloc
(
GetProcessHeap
(),
0
,
lLength
*
sizeof
(
WCHAR
));
if
(
lpszFileW
==
NULL
)
{
goto
end
;
...
...
@@ -633,7 +633,7 @@ UINT WINAPI DragQueryFileW(
if
(
lpDropFileStruct
->
fWide
==
FALSE
)
{
LPSTR
lpszFileA
=
NULL
;
if
(
lpszwFile
)
{
if
(
lpszwFile
&&
lFile
!=
0xFFFFFFFF
)
{
lpszFileA
=
HeapAlloc
(
GetProcessHeap
(),
0
,
lLength
);
if
(
lpszFileA
==
NULL
)
{
goto
end
;
...
...
dlls/shell32/tests/shellole.c
View file @
d2e9856a
...
...
@@ -760,7 +760,7 @@ static LRESULT WINAPI drop_window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARA
num
=
DragQueryFileA
(
hDrop
,
0xffffffff
,
NULL
,
0
);
ok
(
num
==
1
,
"expected 1, got %u
\n
"
,
num
);
num
=
DragQueryFileA
(
hDrop
,
0xffffffff
,
(
char
*
)
0xdeadbeef
,
0xffffffff
);
todo_wine
ok
(
num
==
1
,
"expected 1, got %u
\n
"
,
num
);
ok
(
num
==
1
,
"expected 1, got %u
\n
"
,
num
);
num
=
DragQueryFileA
(
hDrop
,
0
,
filename
,
sizeof
(
filename
));
ok
(
num
==
strlen
(
DROPTEST_FILENAME
),
"got %u
\n
"
,
num
);
ok
(
!
strcmp
(
filename
,
DROPTEST_FILENAME
),
"got %s
\n
"
,
filename
);
...
...
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