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
6f2aa56c
Commit
6f2aa56c
authored
Jun 24, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "winebrowser: Convert URL obtained through DdeGetData to Unicode."
This reverts commit
3dcf22e0
. The conversion is now properly handled in DDEML.
parent
b2de316f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
15 deletions
+3
-15
main.c
programs/winebrowser/main.c
+3
-15
No files found.
programs/winebrowser/main.c
View file @
6f2aa56c
...
...
@@ -199,27 +199,15 @@ 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
(
!
(
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
)))
else
if
(
!
(
ddeString
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
)))
WINE_ERR
(
"Out of memory
\n
"
);
else
if
(
DdeGetData
(
hData
,
(
LPBYTE
)
buffer
,
size
,
0
)
!=
size
)
else
if
(
DdeGetData
(
hData
,
(
LPBYTE
)
ddeString
,
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