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
3dcf22e0
Commit
3dcf22e0
authored
Jun 07, 2008
by
Hans Leidekker
Committed by
Alexandre Julliard
Jun 09, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebrowser: Convert URL obtained through DdeGetData to Unicode.
parent
bcdfb88e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
main.c
programs/winebrowser/main.c
+15
-3
No files found.
programs/winebrowser/main.c
View file @
3dcf22e0
...
...
@@ -190,15 +190,27 @@ static HDDEDATA CALLBACK ddeCb(UINT uType, UINT uFmt, HCONV hConv,
return
(
HDDEDATA
)
FALSE
;
case
XTYP_EXECUTE
:
{
char
*
buffer
=
NULL
;
if
(
!
(
size
=
DdeGetData
(
hData
,
NULL
,
0
,
0
)))
WINE_ERR
(
"DdeGetData returned zero size of execute string
\n
"
);
else
if
(
!
(
ddeString
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
)))
else
if
(
!
(
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
)))
WINE_ERR
(
"Out of memory
\n
"
);
else
if
(
DdeGetData
(
hData
,
(
LPBYTE
)
ddeString
,
size
,
0
)
!=
size
)
else
if
(
DdeGetData
(
hData
,
(
LPBYTE
)
buffer
,
size
,
0
)
!=
size
)
WINE_WARN
(
"DdeGetData did not return %d bytes
\n
"
,
size
);
else
{
int
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
buffer
,
-
1
,
NULL
,
0
);
if
(
!
(
ddeString
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
))))
WINE_ERR
(
"Out of memory
\n
"
);
else
MultiByteToWideChar
(
CP_ACP
,
0
,
buffer
,
-
1
,
ddeString
,
len
);
}
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
DdeFreeDataHandle
(
hData
);
return
(
HDDEDATA
)
DDE_FACK
;
}
case
XTYP_REQUEST
:
ret
=
-
3
;
/* error */
if
(
!
(
size
=
DdeQueryStringW
(
ddeInst
,
hsz2
,
NULL
,
0
,
CP_WINUNICODE
)))
...
...
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