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
a94bc4c0
Commit
a94bc4c0
authored
Oct 18, 2006
by
Huw Davies
Committed by
Alexandre Julliard
Oct 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oledlg: Forward OleUIPasteSpecialA -> OleUIPasteSpecialW.
parent
f08c5c2c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
64 additions
and
4 deletions
+64
-4
pastespl.c
dlls/oledlg/pastespl.c
+64
-4
No files found.
dlls/oledlg/pastespl.c
View file @
a94bc4c0
...
...
@@ -26,6 +26,7 @@
#include "winerror.h"
#include "wingdi.h"
#include "winuser.h"
#include "winnls.h"
#include "oledlg.h"
#include "wine/debug.h"
...
...
@@ -95,14 +96,73 @@ static void dump_pastespecial(LPOLEUIPASTESPECIALW ps)
}
static
inline
WCHAR
*
strdupAtoW
(
const
char
*
str
)
{
DWORD
len
;
WCHAR
*
ret
;
if
(
!
str
)
return
NULL
;
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
str
,
-
1
,
NULL
,
0
);
ret
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
MultiByteToWideChar
(
CP_ACP
,
0
,
str
,
-
1
,
ret
,
len
);
return
ret
;
}
/***********************************************************************
* OleUIPasteSpecialA (OLEDLG.4)
*/
UINT
WINAPI
OleUIPasteSpecialA
(
LPOLEUIPASTESPECIALA
lpOleUIPasteSpecial
)
UINT
WINAPI
OleUIPasteSpecialA
(
LPOLEUIPASTESPECIALA
psA
)
{
FIXME
(
"(%p): stub
\n
"
,
lpOleUIPasteSpecial
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
OLEUI_FALSE
;
OLEUIPASTESPECIALW
ps
;
UINT
ret
;
TRACE
(
"(%p)
\n
"
,
psA
);
memcpy
(
&
ps
,
psA
,
psA
->
cbStruct
);
ps
.
lpszCaption
=
strdupAtoW
(
psA
->
lpszCaption
);
if
(
!
IS_INTRESOURCE
(
ps
.
lpszTemplate
))
ps
.
lpszTemplate
=
strdupAtoW
(
psA
->
lpszTemplate
);
if
(
psA
->
cPasteEntries
>
0
)
{
DWORD
size
=
psA
->
cPasteEntries
*
sizeof
(
ps
.
arrPasteEntries
[
0
]);
UINT
i
;
ps
.
arrPasteEntries
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
memcpy
(
ps
.
arrPasteEntries
,
psA
->
arrPasteEntries
,
size
);
for
(
i
=
0
;
i
<
psA
->
cPasteEntries
;
i
++
)
{
ps
.
arrPasteEntries
[
i
].
lpstrFormatName
=
strdupAtoW
(
psA
->
arrPasteEntries
[
i
].
lpstrFormatName
);
ps
.
arrPasteEntries
[
i
].
lpstrResultText
=
strdupAtoW
(
psA
->
arrPasteEntries
[
i
].
lpstrResultText
);
}
}
ret
=
OleUIPasteSpecialW
(
&
ps
);
if
(
psA
->
cPasteEntries
>
0
)
{
UINT
i
;
for
(
i
=
0
;
i
<
psA
->
cPasteEntries
;
i
++
)
{
HeapFree
(
GetProcessHeap
(),
0
,
(
WCHAR
*
)
ps
.
arrPasteEntries
[
i
].
lpstrFormatName
);
HeapFree
(
GetProcessHeap
(),
0
,
(
WCHAR
*
)
ps
.
arrPasteEntries
[
i
].
lpstrResultText
);
}
HeapFree
(
GetProcessHeap
(),
0
,
ps
.
arrPasteEntries
);
}
if
(
!
IS_INTRESOURCE
(
ps
.
lpszTemplate
))
HeapFree
(
GetProcessHeap
(),
0
,
(
WCHAR
*
)
ps
.
lpszTemplate
);
HeapFree
(
GetProcessHeap
(),
0
,
(
WCHAR
*
)
ps
.
lpszCaption
);
/* Copy back the output fields */
psA
->
dwFlags
=
ps
.
dwFlags
;
psA
->
lpSrcDataObj
=
ps
.
lpSrcDataObj
;
psA
->
nSelectedIndex
=
ps
.
nSelectedIndex
;
psA
->
fLink
=
ps
.
fLink
;
psA
->
hMetaPict
=
ps
.
hMetaPict
;
psA
->
sizel
=
ps
.
sizel
;
return
ret
;
}
/***********************************************************************
...
...
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