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
ddf16e01
Commit
ddf16e01
authored
Jun 10, 2002
by
Sander van Leeuwen
Committed by
Alexandre Julliard
Jun 10, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle ascii & unicode drag and drop structures in DragQueryFileA &
DragQueryFileW.
parent
85844e50
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
shellole.c
dlls/shell32/shellole.c
+36
-0
No files found.
dlls/shell32/shellole.c
View file @
ddf16e01
...
@@ -590,6 +590,24 @@ UINT WINAPI DragQueryFileA(
...
@@ -590,6 +590,24 @@ UINT WINAPI DragQueryFileA(
lpDrop
=
(
LPSTR
)
lpDropFileStruct
+
lpDropFileStruct
->
pFiles
;
lpDrop
=
(
LPSTR
)
lpDropFileStruct
+
lpDropFileStruct
->
pFiles
;
if
(
lpDropFileStruct
->
fWide
==
TRUE
)
{
LPWSTR
lpszFileW
=
NULL
;
if
(
lpszFile
)
{
lpszFileW
=
(
LPWSTR
)
HeapAlloc
(
GetProcessHeap
(),
0
,
lLength
*
sizeof
(
WCHAR
));
if
(
lpszFileW
==
NULL
)
{
goto
end
;
}
}
i
=
DragQueryFileW
(
hDrop
,
lFile
,
lpszFileW
,
lLength
);
if
(
lpszFileW
)
{
WideCharToMultiByte
(
CP_ACP
,
0
,
lpszFileW
,
-
1
,
lpszFile
,
lLength
,
0
,
NULL
);
HeapFree
(
GetProcessHeap
(),
0
,
lpszFileW
);
}
goto
end
;
}
while
(
i
++
<
lFile
)
while
(
i
++
<
lFile
)
{
{
while
(
*
lpDrop
++
);
/* skip filename */
while
(
*
lpDrop
++
);
/* skip filename */
...
@@ -629,6 +647,24 @@ UINT WINAPI DragQueryFileW(
...
@@ -629,6 +647,24 @@ UINT WINAPI DragQueryFileW(
lpwDrop
=
(
LPWSTR
)
((
LPSTR
)
lpDropFileStruct
+
lpDropFileStruct
->
pFiles
);
lpwDrop
=
(
LPWSTR
)
((
LPSTR
)
lpDropFileStruct
+
lpDropFileStruct
->
pFiles
);
if
(
lpDropFileStruct
->
fWide
==
FALSE
)
{
LPSTR
lpszFileA
=
NULL
;
if
(
lpszwFile
)
{
lpszFileA
=
(
LPSTR
)
HeapAlloc
(
GetProcessHeap
(),
0
,
lLength
);
if
(
lpszFileA
==
NULL
)
{
goto
end
;
}
}
i
=
DragQueryFileA
(
hDrop
,
lFile
,
lpszFileA
,
lLength
);
if
(
lpszFileA
)
{
MultiByteToWideChar
(
CP_ACP
,
0
,
lpszFileA
,
-
1
,
lpszwFile
,
lLength
);
HeapFree
(
GetProcessHeap
(),
0
,
lpszFileA
);
}
goto
end
;
}
i
=
0
;
i
=
0
;
while
(
i
++
<
lFile
)
while
(
i
++
<
lFile
)
{
{
...
...
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