Commit 5686741f authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

winebrowser: Enable compilation with long types.

parent a6cf9e57
EXTRADEFS = -DWINE_NO_LONG_TYPES
MODULE = winebrowser.exe MODULE = winebrowser.exe
IMPORTS = urlmon oleaut32 shell32 user32 advapi32 IMPORTS = urlmon oleaut32 shell32 user32 advapi32
......
...@@ -197,7 +197,7 @@ static HDDEDATA CALLBACK ddeCb(UINT uType, UINT uFmt, HCONV hConv, ...@@ -197,7 +197,7 @@ static HDDEDATA CALLBACK ddeCb(UINT uType, UINT uFmt, HCONV hConv,
{ {
DWORD size = 0, ret = 0; DWORD size = 0, ret = 0;
WINE_TRACE("dde_cb: %04x, %04x, %p, %p, %p, %p, %08lx, %08lx\n", WINE_TRACE("dde_cb: %04x, %04x, %p, %p, %p, %p, %08Ix, %08Ix\n",
uType, uFmt, hConv, hsz1, hsz2, hData, dwData1, dwData2); uType, uFmt, hConv, hsz1, hsz2, hData, dwData1, dwData2);
switch (uType) switch (uType)
...@@ -213,7 +213,7 @@ static HDDEDATA CALLBACK ddeCb(UINT uType, UINT uFmt, HCONV hConv, ...@@ -213,7 +213,7 @@ static HDDEDATA CALLBACK ddeCb(UINT uType, UINT uFmt, HCONV hConv,
else if (!(ddeString = malloc(size))) else if (!(ddeString = malloc(size)))
WINE_ERR("Out of memory\n"); WINE_ERR("Out of memory\n");
else if (DdeGetData(hData, (LPBYTE)ddeString, size, 0) != size) 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 %ld bytes\n", size);
DdeFreeDataHandle(hData); DdeFreeDataHandle(hData);
return (HDDEDATA)DDE_FACK; return (HDDEDATA)DDE_FACK;
...@@ -224,7 +224,7 @@ static HDDEDATA CALLBACK ddeCb(UINT uType, UINT uFmt, HCONV hConv, ...@@ -224,7 +224,7 @@ static HDDEDATA CALLBACK ddeCb(UINT uType, UINT uFmt, HCONV hConv,
else if (!(ddeString = malloc( (size + 1) * sizeof(WCHAR)))) else if (!(ddeString = malloc( (size + 1) * sizeof(WCHAR))))
WINE_ERR("Out of memory\n"); WINE_ERR("Out of memory\n");
else if (DdeQueryStringW(ddeInst, hsz2, ddeString, size + 1, CP_WINUNICODE) != size) 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 %ld characters\n", size);
else else
ret = -2; /* acknowledgment */ ret = -2; /* acknowledgment */
return DdeCreateDataHandle(ddeInst, (LPBYTE)&ret, sizeof(ret), 0, return DdeCreateDataHandle(ddeInst, (LPBYTE)&ret, sizeof(ret), 0,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment