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
5686741f
Commit
5686741f
authored
Feb 07, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 07, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebrowser: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a6cf9e57
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
Makefile.in
programs/winebrowser/Makefile.in
+0
-1
main.c
programs/winebrowser/main.c
+3
-3
No files found.
programs/winebrowser/Makefile.in
View file @
5686741f
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
MODULE
=
winebrowser.exe
IMPORTS
=
urlmon oleaut32 shell32 user32 advapi32
...
...
programs/winebrowser/main.c
View file @
5686741f
...
...
@@ -197,7 +197,7 @@ static HDDEDATA CALLBACK ddeCb(UINT uType, UINT uFmt, HCONV hConv,
{
DWORD
size
=
0
,
ret
=
0
;
WINE_TRACE
(
"dde_cb: %04x, %04x, %p, %p, %p, %p, %08
lx, %08l
x
\n
"
,
WINE_TRACE
(
"dde_cb: %04x, %04x, %p, %p, %p, %p, %08
Ix, %08I
x
\n
"
,
uType
,
uFmt
,
hConv
,
hsz1
,
hsz2
,
hData
,
dwData1
,
dwData2
);
switch
(
uType
)
...
...
@@ -213,7 +213,7 @@ static HDDEDATA CALLBACK ddeCb(UINT uType, UINT uFmt, HCONV hConv,
else
if
(
!
(
ddeString
=
malloc
(
size
)))
WINE_ERR
(
"Out of memory
\n
"
);
else
if
(
DdeGetData
(
hData
,
(
LPBYTE
)
ddeString
,
size
,
0
)
!=
size
)
WINE_WARN
(
"DdeGetData did not return %d bytes
\n
"
,
size
);
WINE_WARN
(
"DdeGetData did not return %
l
d bytes
\n
"
,
size
);
DdeFreeDataHandle
(
hData
);
return
(
HDDEDATA
)
DDE_FACK
;
...
...
@@ -224,7 +224,7 @@ static HDDEDATA CALLBACK ddeCb(UINT uType, UINT uFmt, HCONV hConv,
else
if
(
!
(
ddeString
=
malloc
(
(
size
+
1
)
*
sizeof
(
WCHAR
))))
WINE_ERR
(
"Out of memory
\n
"
);
else
if
(
DdeQueryStringW
(
ddeInst
,
hsz2
,
ddeString
,
size
+
1
,
CP_WINUNICODE
)
!=
size
)
WINE_WARN
(
"DdeQueryString did not return %d characters
\n
"
,
size
);
WINE_WARN
(
"DdeQueryString did not return %
l
d characters
\n
"
,
size
);
else
ret
=
-
2
;
/* acknowledgment */
return
DdeCreateDataHandle
(
ddeInst
,
(
LPBYTE
)
&
ret
,
sizeof
(
ret
),
0
,
...
...
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