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
f88fecf8
Commit
f88fecf8
authored
Oct 30, 2022
by
Akihiro Sagawa
Committed by
Alexandre Julliard
Oct 31, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Returns a number of copied bytes in DropQueryFileA.
parent
205f952d
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 @
f88fecf8
...
@@ -583,10 +583,10 @@ UINT WINAPI DragQueryFileA(HDROP hDrop, UINT lFile, LPSTR lpszFile, UINT lLength
...
@@ -583,10 +583,10 @@ UINT WINAPI DragQueryFileA(HDROP hDrop, UINT lFile, LPSTR lpszFile, UINT lLength
}
}
filename
=
malloc
(
i
);
filename
=
malloc
(
i
);
if
(
!
filename
)
goto
error
;
if
(
!
filename
)
goto
error
;
WideCharToMultiByte
(
CP_ACP
,
0
,
filenameW
,
-
1
,
filename
,
i
,
NULL
,
NULL
);
i
=
WideCharToMultiByte
(
CP_ACP
,
0
,
filenameW
,
-
1
,
filename
,
i
,
NULL
,
NULL
);
i
=
strlen
(
filename
);
lstrcpynA
(
lpszFile
,
filename
,
lLength
);
lstrcpynA
(
lpszFile
,
filename
,
lLength
);
i
=
min
(
i
,
lLength
)
-
1
;
end:
end:
free
(
filenameW
);
free
(
filenameW
);
free
(
filename
);
free
(
filename
);
...
...
dlls/shell32/tests/shellole.c
View file @
f88fecf8
...
@@ -796,7 +796,7 @@ static LRESULT WINAPI drop_window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARA
...
@@ -796,7 +796,7 @@ static LRESULT WINAPI drop_window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARA
memset
(
filename
,
0xaa
,
sizeof
(
filename
));
memset
(
filename
,
0xaa
,
sizeof
(
filename
));
num
=
DragQueryFileA
(
hDrop
,
0
,
filename
,
2
);
num
=
DragQueryFileA
(
hDrop
,
0
,
filename
,
2
);
todo_wine
ok
(
num
==
1
,
"expected 1, got %u
\n
"
,
num
);
ok
(
num
==
1
,
"expected 1, got %u
\n
"
,
num
);
ok
(
filename
[
0
]
==
expected_filename
[
0
],
"expected '%c', got '%c'
\n
"
,
ok
(
filename
[
0
]
==
expected_filename
[
0
],
"expected '%c', got '%c'
\n
"
,
expected_filename
[
0
],
filename
[
0
]);
expected_filename
[
0
],
filename
[
0
]);
ok
(
filename
[
1
]
==
'\0'
,
"expected nul, got %#x
\n
"
,
(
BYTE
)
filename
[
1
]);
ok
(
filename
[
1
]
==
'\0'
,
"expected nul, got %#x
\n
"
,
(
BYTE
)
filename
[
1
]);
...
...
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