winehq.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
January
2003
December
November
October
September
August
July
June
May
April
March
February
January
2002
December
November
October
September
August
July
June
May
April
March
February
January
2001
December
November
October
September
August
July
June
May
April
March
February
List overview
wine-commits
December 2007
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
3 participants
824 discussions
Start a n
N
ew thread
Jeremy White : wintab32: Add logic to detect specific tablet cursor types, use it to discard non tablet X devices.
by Alexandre Julliard
31 Dec '07
31 Dec '07
Module: wine Branch: master Commit: 51aecf8056748b4a9abcf67ec8f5dc7c73f76af2 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=51aecf8056748b4a9abcf67ec…
Author: Jeremy White <jwhite(a)codeweavers.com> Date: Mon Dec 31 09:49:19 2007 -0600 wintab32: Add logic to detect specific tablet cursor types, use it to discard non tablet X devices. --- dlls/winex11.drv/wintab.c | 98 +++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 94 insertions(+), 4 deletions(-) diff --git a/dlls/winex11.drv/wintab.c b/dlls/winex11.drv/wintab.c index e3c7b57..335d7f5 100644 --- a/dlls/winex11.drv/wintab.c +++ b/dlls/winex11.drv/wintab.c @@ -362,6 +362,80 @@ static void trace_axes(XValuatorInfoPtr val) TRACE(" Axis %d: [resolution %d|min_value %d|max_value %d]\n", i, axis->resolution, axis->min_value, axis->max_value); } +BOOL match_token(const char *haystack, const char *needle) +{ + const char *p, *q; + for (p = haystack; *p; ) + { + while (*p && isspace(*p)) + p++; + if (! *p) + break; + + for (q = needle; *q && *p && tolower(*p) == tolower(*q); q++) + p++; + if (! *q && (isspace(*p) || !*p)) + return TRUE; + + while (*p && ! isspace(*p)) + p++; + } + return FALSE; +} + +/* Determining if an X device is a Tablet style device is an imperfect science. +** We rely on common conventions around device names as well as the type reported +** by Wacom tablets. This code will likely need to be expanded for alternate tablet types +*/ + +#define IS_TABLET_CURSOR(n, t) (is_wacom((n), (t)) || is_cursor((n), (t)) || is_stylus((n), (t)) || is_eraser((n), (t)) || is_pad((n), (t))) + +static BOOL is_wacom(const char *name, const char *type) +{ + if (name && match_token(name, "wacom")) + return TRUE; + if (type && match_token(type, "wacom")) + return TRUE; + return FALSE; +} + +static BOOL is_cursor(const char *name, const char *type) +{ + if (name && match_token(name, "cursor")) + return TRUE; + if (type && match_token(type, "cursor")) + return TRUE; + return FALSE; +} + +static BOOL is_stylus(const char *name, const char *type) +{ + if (name && match_token(name, "stylus")) + return TRUE; + if (type && match_token(type, "stylus")) + return TRUE; + return FALSE; +} + +static BOOL is_eraser(const char *name, const char *type) +{ + if (name && match_token(name, "eraser")) + return TRUE; + if (type && match_token(type, "eraser")) + return TRUE; + return FALSE; +} + +static BOOL is_pad(const char *name, const char *type) +{ + if (name && match_token(name, "pad")) + return TRUE; + if (type && match_token(type, "pad")) + return TRUE; + return FALSE; +} + + void X11DRV_LoadTabletInfo(HWND hwnddefault) { const WCHAR SZ_CONTEXT_NAME[] = {'W','i','n','e',' ','T','a','b','l','e','t',' ','C','o','n','t','e','x','t',0}; @@ -440,16 +514,17 @@ void X11DRV_LoadTabletInfo(HWND hwnddefault) for (loop=0; loop < num_devices; loop++) { int class_loop; + char *device_type = XGetAtomName(data->display, devices[loop].type); TRACE("Device %i: [id %d|name %s|type %s|num_classes %d|use %s]\n", - loop, (int) devices[loop].id, devices[loop].name, - XGetAtomName(data->display, devices[loop].type), + loop, (int) devices[loop].id, devices[loop].name, device_type, devices[loop].num_classes, devices[loop].use == IsXKeyboard ? "IsXKeyboard" : devices[loop].use == IsXPointer ? "IsXPointer" : devices[loop].use == IsXExtensionDevice ? "IsXExtensionDevice" : "Unknown" ); + if (devices[loop].use == IsXExtensionDevice) { LPWTI_CURSORS_INFO cursor; @@ -463,6 +538,7 @@ void X11DRV_LoadTabletInfo(HWND hwnddefault) { ERR("Input device '%s' name too long - skipping\n", wine_dbgstr_a(target->name)); cursor_target--; + XFree(device_type); continue; } @@ -481,6 +557,7 @@ void X11DRV_LoadTabletInfo(HWND hwnddefault) TRACE("No buttons, Non Tablet Device\n"); pXCloseDevice(data->display, opendevice); cursor_target --; + XFree(device_type); continue; } @@ -495,10 +572,20 @@ void X11DRV_LoadTabletInfo(HWND hwnddefault) { WARN("Unable to open device %s\n",target->name); cursor_target --; + XFree(device_type); continue; } MultiByteToWideChar(CP_UNIXCP, 0, target->name, -1, cursor->NAME, WT_MAX_NAME_LEN); + if (! IS_TABLET_CURSOR(target->name, device_type)) + { + WARN("Skipping device %d [name %s|type %s]; not apparently a tablet cursor type device\n", + loop, devices[loop].name, device_type); + XFree(device_type); + cursor_target --; + continue; + } + cursor->ACTIVE = 1; cursor->PKTDATA = PK_TIME | PK_CURSOR | PK_BUTTONS | PK_X | PK_Y | PK_NORMAL_PRESSURE | PK_TANGENT_PRESSURE | @@ -509,9 +596,9 @@ void X11DRV_LoadTabletInfo(HWND hwnddefault) cursor->NPBTNMARKS[0] = 0 ; cursor->NPBTNMARKS[1] = 1 ; cursor->CAPABILITIES = CRC_MULTIMODE; - if (strcasecmp(target->name,"stylus")==0) + if (is_stylus(target->name, device_type)) cursor->TYPE = CSR_TYPE_PEN; - if (strcasecmp(target->name,"eraser")==0) + if (is_eraser(target->name, device_type)) cursor->TYPE = CSR_TYPE_ERASER; @@ -632,6 +719,9 @@ void X11DRV_LoadTabletInfo(HWND hwnddefault) any = (XAnyClassPtr) ((char*) any + any->length); } } + + XFree(device_type); + } pXFreeDeviceList(devices); gSysDevice.NCSRTYPES = cursor_target+1;
1
0
0
0
Jeremy White : wintab32: Remove the unused and clearly broken FindOpenContext function.
by Alexandre Julliard
31 Dec '07
31 Dec '07
Module: wine Branch: master Commit: 6c1d38649ae547d57dbb91bc07281390d0b3befa URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6c1d38649ae547d57dbb91bc0…
Author: Jeremy White <jwhite(a)codeweavers.com> Date: Sun Dec 30 17:16:37 2007 -0600 wintab32: Remove the unused and clearly broken FindOpenContext function. It's clear that someone left it in by accident; the TABLET_FindOpenContext is its clear successor. --- dlls/wintab32/context.c | 15 --------------- dlls/wintab32/wintab_internal.h | 1 - 2 files changed, 0 insertions(+), 16 deletions(-) diff --git a/dlls/wintab32/context.c b/dlls/wintab32/context.c index bd79701..4b382ec 100644 --- a/dlls/wintab32/context.c +++ b/dlls/wintab32/context.c @@ -166,21 +166,6 @@ static inline DWORD ScaleForContext(DWORD In, DWORD InOrg, DWORD InExt, DWORD return ((abs(InExt) - (In - InOrg))*abs(OutExt) / abs(InExt)) + OutOrg; } -LPOPENCONTEXT FindOpenContext(HWND hwnd) -{ - LPOPENCONTEXT ptr; - - EnterCriticalSection(&csTablet); - ptr = gOpenContexts; - while (ptr) - { - TRACE("Trying Context %p (%p %p)\n",ptr->handle,hwnd,ptr->hwndOwner); - if (ptr->hwndOwner == hwnd) break; - } - LeaveCriticalSection(&csTablet); - return ptr; -} - LPOPENCONTEXT AddPacketToContextQueue(LPWTPACKET packet, HWND hwnd) { LPOPENCONTEXT ptr=NULL; diff --git a/dlls/wintab32/wintab_internal.h b/dlls/wintab32/wintab_internal.h index 1c8636d..4fa4bfd 100644 --- a/dlls/wintab32/wintab_internal.h +++ b/dlls/wintab32/wintab_internal.h @@ -149,7 +149,6 @@ typedef struct tagOPENCONTEXT int TABLET_PostTabletMessage(LPOPENCONTEXT newcontext, UINT msg, WPARAM wParam, LPARAM lParam, BOOL send_always); LPOPENCONTEXT AddPacketToContextQueue(LPWTPACKET packet, HWND hwnd); -LPOPENCONTEXT FindOpenContext(HWND hwnd); /* X11drv functions */ extern int (*pLoadTabletInfo)(HWND hwnddefault);
1
0
0
0
Jeremy White : wintab32: Add modest trace information for tablets.
by Alexandre Julliard
31 Dec '07
31 Dec '07
Module: wine Branch: master Commit: ca89d7e80998a817b4ed82e30901854b3f70cf8a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ca89d7e80998a817b4ed82e30…
Author: Jeremy White <jwhite(a)codeweavers.com> Date: Sun Dec 30 11:41:54 2007 -0600 wintab32: Add modest trace information for tablets. --- dlls/winex11.drv/wintab.c | 1 + dlls/wintab32/context.c | 5 ++++- 2 files changed, 5 insertions(+), 1 deletions(-) diff --git a/dlls/winex11.drv/wintab.c b/dlls/winex11.drv/wintab.c index c3ad140..e3c7b57 100644 --- a/dlls/winex11.drv/wintab.c +++ b/dlls/winex11.drv/wintab.c @@ -436,6 +436,7 @@ void X11DRV_LoadTabletInfo(HWND hwnddefault) wine_tsx11_unlock(); return; } + TRACE("XListInputDevices reports %d devices\n", num_devices); for (loop=0; loop < num_devices; loop++) { int class_loop; diff --git a/dlls/wintab32/context.c b/dlls/wintab32/context.c index 7974972..bd79701 100644 --- a/dlls/wintab32/context.c +++ b/dlls/wintab32/context.c @@ -367,6 +367,8 @@ static VOID TABLET_BlankPacketData(LPOPENCONTEXT context, LPVOID lpPkt, INT n) UINT WINAPI WTInfoT(UINT wCategory, UINT nIndex, LPVOID lpOutput, BOOL bUnicode) { UINT result; + + TRACE("(%d, %d, %p, %d)\n", wCategory, nIndex, lpOutput, bUnicode); if (gLoaded == FALSE) LoadTablet(); @@ -409,7 +411,7 @@ UINT WINAPI WTInfoT(UINT wCategory, UINT nIndex, LPVOID lpOutput, BOOL bUnicode) LOGCONTEXTWtoA(&buf, lpOutput); } - return bUnicode ? sizeof(LOGCONTEXTW) : sizeof(LOGCONTEXTA); + result = bUnicode ? sizeof(LOGCONTEXTW) : sizeof(LOGCONTEXTA); } else if (is_string_field(wCategory, nIndex) && !bUnicode) { @@ -422,6 +424,7 @@ UINT WINAPI WTInfoT(UINT wCategory, UINT nIndex, LPVOID lpOutput, BOOL bUnicode) else result = pWTInfoW(wCategory, nIndex, lpOutput); + TRACE("returns %d\n", result); return result; }
1
0
0
0
Andrew Talbot : crypt32: Remove unneeded casts.
by Alexandre Julliard
31 Dec '07
31 Dec '07
Module: wine Branch: master Commit: 5d886557df4d1095bb84a26ccf0ed2bb5722e1aa URL:
http://source.winehq.org/git/wine.git/?a=commit;h=5d886557df4d1095bb84a26cc…
Author: Andrew Talbot <andrew.talbot(a)talbotville.com> Date: Sun Dec 30 15:29:38 2007 +0000 crypt32: Remove unneeded casts. --- dlls/crypt32/cert.c | 3 +-- dlls/crypt32/protectdata.c | 15 +++++++-------- dlls/crypt32/store.c | 2 +- dlls/crypt32/str.c | 2 +- 4 files changed, 10 insertions(+), 12 deletions(-) diff --git a/dlls/crypt32/cert.c b/dlls/crypt32/cert.c index 97f9360..d747574 100644 --- a/dlls/crypt32/cert.c +++ b/dlls/crypt32/cert.c @@ -831,8 +831,7 @@ DWORD WINAPI CertGetPublicKeyLength(DWORD dwCertEncodingType, if (ret) { - RSAPUBKEY *rsaPubKey = (RSAPUBKEY *)((LPBYTE)buf + - sizeof(BLOBHEADER)); + RSAPUBKEY *rsaPubKey = (RSAPUBKEY *)(buf + sizeof(BLOBHEADER)); len = rsaPubKey->bitlen; LocalFree(buf); diff --git a/dlls/crypt32/protectdata.c b/dlls/crypt32/protectdata.c index d5ec287..d3e0034 100644 --- a/dlls/crypt32/protectdata.c +++ b/dlls/crypt32/protectdata.c @@ -331,7 +331,7 @@ BOOL serialize(const struct protect_data_t *pInfo, DATA_BLOB *pSerial) if (ptr - pSerial->pbData != dwStruct) { ERR("struct size changed!? %u != expected %u\n", - ptr - pSerial->pbData, (unsigned int)dwStruct); + ptr - pSerial->pbData, dwStruct); LocalFree(pSerial->pbData); pSerial->pbData=NULL; pSerial->cbData=0; @@ -476,8 +476,7 @@ BOOL unserialize(const DATA_BLOB *pSerial, struct protect_data_t *pInfo) { /* this is an impossible-to-reach test, but if the padding * issue is ever understood, this may become more useful */ - ERR("loaded corrupt structure! (used %u expected %u)\n", - (unsigned int)index, (unsigned int)size); + ERR("loaded corrupt structure! (used %u expected %u)\n", index, size); status=FALSE; } @@ -776,15 +775,15 @@ report(const DATA_BLOB* pDataIn, const DATA_BLOB* pOptionalEntropy, TRACE("pPromptStruct: %p\n", pPromptStruct); if (pPromptStruct) { - TRACE(" cbSize: 0x%x\n",(unsigned int)pPromptStruct->cbSize); - TRACE(" dwPromptFlags: 0x%x\n",(unsigned int)pPromptStruct->dwPromptFlags); + TRACE(" cbSize: 0x%x\n", pPromptStruct->cbSize); + TRACE(" dwPromptFlags: 0x%x\n", pPromptStruct->dwPromptFlags); TRACE(" hwndApp: %p\n", pPromptStruct->hwndApp); TRACE(" szPrompt: %p %s\n", pPromptStruct->szPrompt, pPromptStruct->szPrompt ? debugstr_w(pPromptStruct->szPrompt) : ""); } - TRACE("dwFlags: 0x%04x\n",(unsigned int)dwFlags); + TRACE("dwFlags: 0x%04x\n", dwFlags); TRACE_DATA_BLOB(pDataIn); if (pOptionalEntropy) { @@ -893,7 +892,7 @@ BOOL WINAPI CryptProtectData(DATA_BLOB* pDataIn, ERR("CryptEncrypt\n"); goto free_hash; } - TRACE("required encrypted storage: %u\n",(unsigned int)dwLength); + TRACE("required encrypted storage: %u\n", dwLength); /* copy plain text into cipher area for CryptEncrypt call */ protect_data.cipher.cbData=dwLength; @@ -910,7 +909,7 @@ BOOL WINAPI CryptProtectData(DATA_BLOB* pDataIn, if (!CryptEncrypt(hKey, hHash, TRUE, 0, protect_data.cipher.pbData, &dwLength, protect_data.cipher.cbData)) { - ERR("CryptEncrypt %u\n",(unsigned int)GetLastError()); + ERR("CryptEncrypt %u\n", GetLastError()); goto free_hash; } protect_data.cipher.cbData=dwLength; diff --git a/dlls/crypt32/store.c b/dlls/crypt32/store.c index 1158feb..37247a5 100644 --- a/dlls/crypt32/store.c +++ b/dlls/crypt32/store.c @@ -521,7 +521,7 @@ static PWINECRYPT_CERTSTORE CRYPT_SysOpenStoreA(HCRYPTPROV hCryptProv, static void WINAPI CRYPT_MsgCloseStore(HCERTSTORE hCertStore, DWORD dwFlags) { - HCRYPTMSG msg = (HCRYPTMSG)hCertStore; + HCRYPTMSG msg = hCertStore; TRACE("(%p, %08x)\n", msg, dwFlags); CryptMsgClose(msg); diff --git a/dlls/crypt32/str.c b/dlls/crypt32/str.c index 8e19dc8..699779f 100644 --- a/dlls/crypt32/str.c +++ b/dlls/crypt32/str.c @@ -622,7 +622,7 @@ static BOOL CRYPT_GetNextValueW(LPCWSTR str, DWORD dwFlags, LPCWSTR separators, while (*separators) map[*separators++] = 1; - while (*str && (*str >= 0xff || !map[*(const unsigned short *)str])) + while (*str && (*str >= 0xff || !map[*str])) str++; token->end = str; }
1
0
0
0
Andrew Talbot : cryptnet: Remove unneeded cast.
by Alexandre Julliard
31 Dec '07
31 Dec '07
Module: wine Branch: master Commit: 46b6f43fa0da00264b2d050d07d03fc3f58ff7ad URL:
http://source.winehq.org/git/wine.git/?a=commit;h=46b6f43fa0da00264b2d050d0…
Author: Andrew Talbot <andrew.talbot(a)talbotville.com> Date: Sun Dec 30 15:29:43 2007 +0000 cryptnet: Remove unneeded cast. --- dlls/cryptnet/cryptnet_main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/cryptnet/cryptnet_main.c b/dlls/cryptnet/cryptnet_main.c index eba8648..30f9350 100644 --- a/dlls/cryptnet/cryptnet_main.c +++ b/dlls/cryptnet/cryptnet_main.c @@ -1139,7 +1139,7 @@ static BOOL WINAPI CRYPT_CreatePKCS7(LPCSTR pszObjectOid, ret = CryptQueryObject(CERT_QUERY_OBJECT_BLOB, &pObject->rgBlob[0], CERT_QUERY_CONTENT_FLAG_PKCS7_SIGNED | CERT_QUERY_CONTENT_FLAG_PKCS7_UNSIGNED, CERT_QUERY_FORMAT_FLAG_BINARY, - 0, NULL, NULL, NULL, (HCERTSTORE *)ppvContext, NULL, NULL); + 0, NULL, NULL, NULL, ppvContext, NULL, NULL); else { FIXME("multiple messages unimplemented\n");
1
0
0
0
Andrew Talbot : user32: Fix a spelling typo.
by Alexandre Julliard
31 Dec '07
31 Dec '07
Module: wine Branch: master Commit: 8752c6d1a51387f087ffa6cf8fa511b10c8bf00d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8752c6d1a51387f087ffa6cf8…
Author: Andrew Talbot <andrew.talbot(a)talbotville.com> Date: Sat Dec 29 21:17:43 2007 +0000 user32: Fix a spelling typo. --- dlls/user32/dde_server.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/user32/dde_server.c b/dlls/user32/dde_server.c index 8f43c36..cd32e4a 100644 --- a/dlls/user32/dde_server.c +++ b/dlls/user32/dde_server.c @@ -1005,7 +1005,7 @@ static LRESULT CALLBACK WDML_ServerConvProc(HWND hwndServer, UINT iMsg, WPARAM w } if (pConv->hwndClient != WIN_GetFullHandle( (HWND)wParam ) || pConv->hwndServer != hwndServer) { - ERR("mismatch between C/S windows and converstation\n"); + ERR("mismatch between C/S windows and conversation\n"); return 0; } if (pConv->instance != pInstance || pConv->instance == NULL)
1
0
0
0
Andrew Talbot : avifil32: Remove unneeded casts.
by Alexandre Julliard
31 Dec '07
31 Dec '07
Module: wine Branch: master Commit: ff92404decece1c3eb1499162c87f03a03b4a0c3 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ff92404decece1c3eb1499162…
Author: Andrew Talbot <andrew.talbot(a)talbotville.com> Date: Sat Dec 29 15:37:24 2007 +0000 avifil32: Remove unneeded casts. --- dlls/avifil32/api.c | 2 +- dlls/avifil32/avifile.c | 4 ++-- dlls/avifil32/factory.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/avifil32/api.c b/dlls/avifil32/api.c index 910c816..465164a 100644 --- a/dlls/avifil32/api.c +++ b/dlls/avifil32/api.c @@ -1509,7 +1509,7 @@ BOOL WINAPI AVISaveOptions(HWND hWnd, UINT uFlags, INT nStreams, HeapFree(GetProcessHeap(), 0, pSavedOptions); } - return (BOOL)ret; + return ret; } /*********************************************************************** diff --git a/dlls/avifil32/avifile.c b/dlls/avifil32/avifile.c index a23e326..b97fd78 100644 --- a/dlls/avifil32/avifile.c +++ b/dlls/avifil32/avifile.c @@ -1795,7 +1795,7 @@ static HRESULT AVIFILE_LoadFile(IAVIFileImpl *This) if (str == NULL) return AVIERR_MEMORY; - if (mmioRead(This->hmmio, (HPSTR)str, ck.cksize) != ck.cksize) + if (mmioRead(This->hmmio, str, ck.cksize) != ck.cksize) { HeapFree(GetProcessHeap(), 0, str); return AVIERR_FILEREAD; @@ -2249,7 +2249,7 @@ static HRESULT AVIFILE_SaveFile(IAVIFileImpl *This) WideCharToMultiByte(CP_ACP, 0, pStream->sInfo.szName, -1, str, ck.cksize, NULL, NULL); - if (mmioWrite(This->hmmio, (HPSTR)str, ck.cksize) != ck.cksize) { + if (mmioWrite(This->hmmio, str, ck.cksize) != ck.cksize) { HeapFree(GetProcessHeap(), 0, str); return AVIERR_FILEWRITE; } diff --git a/dlls/avifil32/factory.c b/dlls/avifil32/factory.c index ae717c8..40e4c68 100644 --- a/dlls/avifil32/factory.c +++ b/dlls/avifil32/factory.c @@ -209,7 +209,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstDll, DWORD fdwReason, LPVOID lpvReserved) switch (fdwReason) { case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hInstDll); - AVIFILE_hModule = (HMODULE)hInstDll; + AVIFILE_hModule = hInstDll; break; case DLL_PROCESS_DETACH: break;
1
0
0
0
Andrew Talbot : cabinet: Remove unneeded cast.
by Alexandre Julliard
31 Dec '07
31 Dec '07
Module: wine Branch: master Commit: 69599675a7d6ee7ea0a10bf4ccb994ccd7c6c2a7 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=69599675a7d6ee7ea0a10bf4c…
Author: Andrew Talbot <andrew.talbot(a)talbotville.com> Date: Sat Dec 29 15:37:27 2007 +0000 cabinet: Remove unneeded cast. --- dlls/cabinet/fdi.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/cabinet/fdi.c b/dlls/cabinet/fdi.c index 91e2daf..a0bb64a 100644 --- a/dlls/cabinet/fdi.c +++ b/dlls/cabinet/fdi.c @@ -461,7 +461,7 @@ static char *FDI_read_string(HFDI hfdi, INT_PTR hf, long cabsize) } /* otherwise, set the stream to just after the string and return */ - PFDI_SEEK(hfdi, hf, base + ((cab_off_t) strlen((char *) buf)) + 1, SEEK_SET); + PFDI_SEEK(hfdi, hf, base + strlen((char *)buf) + 1, SEEK_SET); return (char *) buf; }
1
0
0
0
Andrew Talbot : comctl32: Remove unneeded casts.
by Alexandre Julliard
31 Dec '07
31 Dec '07
Module: wine Branch: master Commit: 867f254bec4d2a829f9996fb050c21ca0ce24013 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=867f254bec4d2a829f9996fb0…
Author: Andrew Talbot <andrew.talbot(a)talbotville.com> Date: Sat Dec 29 15:37:34 2007 +0000 comctl32: Remove unneeded casts. --- dlls/comctl32/commctrl.c | 8 ++++---- dlls/comctl32/datetime.c | 4 ++-- dlls/comctl32/header.c | 6 ++---- dlls/comctl32/ipaddress.c | 3 +-- dlls/comctl32/listview.c | 3 +-- dlls/comctl32/monthcal.c | 17 +++++++---------- dlls/comctl32/pager.c | 9 +++------ dlls/comctl32/rebar.c | 2 +- dlls/comctl32/syslink.c | 2 +- dlls/comctl32/updown.c | 2 +- 10 files changed, 23 insertions(+), 33 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=867f254bec4d2a829f999…
1
0
0
0
Andrew Talbot : advapi32: Remove unneeded casts.
by Alexandre Julliard
31 Dec '07
31 Dec '07
Module: wine Branch: master Commit: 05f38321c4b5672238c635c27079cac079074dd1 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=05f38321c4b5672238c635c27…
Author: Andrew Talbot <andrew.talbot(a)talbotville.com> Date: Sat Dec 29 15:37:21 2007 +0000 advapi32: Remove unneeded casts. --- dlls/advapi32/crypt_md4.c | 4 ++-- dlls/advapi32/crypt_md5.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/advapi32/crypt_md4.c b/dlls/advapi32/crypt_md4.c index 5f4e709..3341f08 100644 --- a/dlls/advapi32/crypt_md4.c +++ b/dlls/advapi32/crypt_md4.c @@ -58,7 +58,7 @@ static void byteReverse( unsigned char *buf, unsigned longs ) unsigned int t; do { - t = (unsigned int)((unsigned)buf[3] << 8 | buf[2]) << 16 | + t = ((unsigned)buf[3] << 8 | buf[2]) << 16 | ((unsigned)buf[1] << 8 | buf[0]); *(unsigned int *)buf = t; buf += 4; @@ -90,7 +90,7 @@ VOID WINAPI MD4Update( MD4_CTX *ctx, const unsigned char *buf, unsigned int len /* Update bitcount */ t = ctx->i[0]; - if ((ctx->i[0] = t + ((unsigned int)len << 3)) < t) + if ((ctx->i[0] = t + (len << 3)) < t) ctx->i[1]++; /* Carry from low to high */ ctx->i[1] += len >> 29; diff --git a/dlls/advapi32/crypt_md5.c b/dlls/advapi32/crypt_md5.c index d326715..3cb039a 100644 --- a/dlls/advapi32/crypt_md5.c +++ b/dlls/advapi32/crypt_md5.c @@ -55,7 +55,7 @@ static void byteReverse( unsigned char *buf, unsigned longs ) unsigned int t; do { - t = (unsigned int)((unsigned)buf[3] << 8 | buf[2]) << 16 | + t = ((unsigned)buf[3] << 8 | buf[2]) << 16 | ((unsigned)buf[1] << 8 | buf[0]); *(unsigned int *)buf = t; buf += 4; @@ -87,7 +87,7 @@ VOID WINAPI MD5Update( MD5_CTX *ctx, const unsigned char *buf, unsigned int len /* Update bitcount */ t = ctx->i[0]; - if ((ctx->i[0] = t + ((unsigned int)len << 3)) < t) + if ((ctx->i[0] = t + (len << 3)) < t) ctx->i[1]++; /* Carry from low to high */ ctx->i[1] += len >> 29;
1
0
0
0
← Newer
1
2
3
4
5
...
83
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
Results per page:
10
25
50
100
200