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
October 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
4 participants
996 discussions
Start a n
N
ew thread
Juan Lang : setupapi: Correct device enumeration.
by Alexandre Julliard
15 Oct '07
15 Oct '07
Module: wine Branch: master Commit: a10a8eb134d275a97b403a40c03dc850c7b73c51 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a10a8eb134d275a97b403a40c…
Author: Juan Lang <juan.lang(a)gmail.com> Date: Fri Oct 12 08:30:10 2007 -0700 setupapi: Correct device enumeration. --- dlls/setupapi/devinst.c | 82 +++++++++++++++++++++++++++++++++------------- 1 files changed, 59 insertions(+), 23 deletions(-) diff --git a/dlls/setupapi/devinst.c b/dlls/setupapi/devinst.c index 8abd2e7..bd58791 100644 --- a/dlls/setupapi/devinst.c +++ b/dlls/setupapi/devinst.c @@ -2137,25 +2137,26 @@ static void SETUPDI_EnumerateInterfaces(HDEVINFO DeviceInfoSet, } } -static void SETUPDI_EnumerateMatchingDevices(HDEVINFO DeviceInfoSet, - LPCWSTR parent, HKEY key, const GUID *class, DWORD flags) +static void SETUPDI_EnumerateMatchingDeviceInstances(struct DeviceInfoSet *set, + LPCWSTR enumerator, LPCWSTR deviceName, HKEY deviceKey, + const GUID *class, DWORD flags) { - struct DeviceInfoSet *set = (struct DeviceInfoSet *)DeviceInfoSet; DWORD i, len; - WCHAR subKeyName[MAX_PATH]; + WCHAR deviceInstance[MAX_PATH]; LONG l = ERROR_SUCCESS; - TRACE("%s\n", debugstr_w(parent)); + TRACE("%s %s\n", debugstr_w(enumerator), debugstr_w(deviceName)); for (i = 0; !l; i++) { - len = sizeof(subKeyName) / sizeof(subKeyName[0]); - l = RegEnumKeyExW(key, i, subKeyName, &len, NULL, NULL, NULL, NULL); + len = sizeof(deviceInstance) / sizeof(deviceInstance[0]); + l = RegEnumKeyExW(deviceKey, i, deviceInstance, &len, NULL, NULL, NULL, + NULL); if (!l) { HKEY subKey; - l = RegOpenKeyExW(key, subKeyName, 0, KEY_READ, &subKey); + l = RegOpenKeyExW(deviceKey, deviceInstance, 0, KEY_READ, &subKey); if (!l) { WCHAR classGuid[40]; @@ -2179,11 +2180,12 @@ static void SETUPDI_EnumerateMatchingDevices(HDEVINFO DeviceInfoSet, LPWSTR instanceId; instanceId = HeapAlloc(GetProcessHeap(), 0, - (lstrlenW(parent) + lstrlenW(subKeyName) + 2) - * sizeof(WCHAR)); + (lstrlenW(deviceName) + + lstrlenW(deviceInstance) + 2) * sizeof(WCHAR)); if (instanceId) { - sprintfW(instanceId, fmt, parent, subKeyName); + sprintfW(instanceId, fmt, deviceName, + deviceInstance); SETUPDI_AddDeviceToSet(set, &deviceClass, 0 /* FIXME: DevInst */, instanceId, FALSE, NULL); @@ -2200,46 +2202,80 @@ static void SETUPDI_EnumerateMatchingDevices(HDEVINFO DeviceInfoSet, } } +static void SETUPDI_EnumerateMatchingDevices(HDEVINFO DeviceInfoSet, + LPCWSTR parent, HKEY key, const GUID *class, DWORD flags) +{ + struct DeviceInfoSet *set = (struct DeviceInfoSet *)DeviceInfoSet; + DWORD i, len; + WCHAR subKeyName[MAX_PATH]; + LONG l = ERROR_SUCCESS; + + TRACE("%s\n", debugstr_w(parent)); + + for (i = 0; !l; i++) + { + len = sizeof(subKeyName) / sizeof(subKeyName[0]); + l = RegEnumKeyExW(key, i, subKeyName, &len, NULL, NULL, NULL, NULL); + if (!l) + { + HKEY subKey; + + l = RegOpenKeyExW(key, subKeyName, 0, KEY_READ, &subKey); + if (!l) + { + TRACE("%s\n", debugstr_w(subKeyName)); + SETUPDI_EnumerateMatchingDeviceInstances(set, parent, + subKeyName, subKey, class, flags); + RegCloseKey(subKey); + } + /* Allow enumeration to continue */ + l = ERROR_SUCCESS; + } + } +} + static void SETUPDI_EnumerateDevices(HDEVINFO DeviceInfoSet, const GUID *class, LPCWSTR enumstr, DWORD flags) { - HKEY classesKey = SetupDiOpenClassRegKeyExW(class, KEY_READ, - DIOCR_INSTALLER, NULL, NULL); + HKEY enumKey; + LONG l; TRACE("%p, %s, %s, %08x\n", DeviceInfoSet, debugstr_guid(class), debugstr_w(enumstr), flags); - if (classesKey != INVALID_HANDLE_VALUE) + l = RegCreateKeyExW(HKEY_LOCAL_MACHINE, Enum, 0, NULL, 0, KEY_READ, NULL, + &enumKey, NULL); + if (enumKey != INVALID_HANDLE_VALUE) { if (enumstr) { - HKEY enumKey; - LONG l = RegOpenKeyExW(classesKey, enumstr, 0, KEY_READ, - &enumKey); + HKEY enumStrKey; + l = RegOpenKeyExW(enumKey, enumstr, 0, KEY_READ, + &enumStrKey); if (!l) { SETUPDI_EnumerateMatchingDevices(DeviceInfoSet, enumstr, - enumKey, class, flags); - RegCloseKey(enumKey); + enumStrKey, class, flags); + RegCloseKey(enumStrKey); } } else { DWORD i, len; WCHAR subKeyName[MAX_PATH]; - LONG l = ERROR_SUCCESS; + l = ERROR_SUCCESS; for (i = 0; !l; i++) { len = sizeof(subKeyName) / sizeof(subKeyName[0]); - l = RegEnumKeyExW(classesKey, i, subKeyName, &len, NULL, + l = RegEnumKeyExW(enumKey, i, subKeyName, &len, NULL, NULL, NULL, NULL); if (!l) { HKEY subKey; - l = RegOpenKeyExW(classesKey, subKeyName, 0, KEY_READ, + l = RegOpenKeyExW(enumKey, subKeyName, 0, KEY_READ, &subKey); if (!l) { @@ -2252,7 +2288,7 @@ static void SETUPDI_EnumerateDevices(HDEVINFO DeviceInfoSet, const GUID *class, } } } - RegCloseKey(classesKey); + RegCloseKey(enumKey); } }
1
0
0
0
Juan Lang : setupapi: Don't abort key enumeration early.
by Alexandre Julliard
15 Oct '07
15 Oct '07
Module: wine Branch: master Commit: 162911baef8f5488a4bc1fbfdec70f621c51a381 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=162911baef8f5488a4bc1fbfd…
Author: Juan Lang <juan.lang(a)gmail.com> Date: Fri Oct 12 08:26:56 2007 -0700 setupapi: Don't abort key enumeration early. --- dlls/setupapi/devinst.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/dlls/setupapi/devinst.c b/dlls/setupapi/devinst.c index 4087710..8abd2e7 100644 --- a/dlls/setupapi/devinst.c +++ b/dlls/setupapi/devinst.c @@ -1998,6 +1998,8 @@ static void SETUPDI_AddDeviceInterfaces(SP_DEVINFO_DATA *dev, HKEY key, SETUPDI_SetInterfaceSymbolicLink(iface, symbolicLink); RegCloseKey(subKey); } + /* Allow enumeration to continue */ + l = ERROR_SUCCESS; } } /* FIXME: find and add all the device's interfaces to the device */ @@ -2071,6 +2073,8 @@ static void SETUPDI_EnumerateMatchingInterfaces(HDEVINFO DeviceInfoSet, } RegCloseKey(subKey); } + /* Allow enumeration to continue */ + l = ERROR_SUCCESS; } } if (enumKey != INVALID_HANDLE_VALUE) @@ -2190,6 +2194,8 @@ static void SETUPDI_EnumerateMatchingDevices(HDEVINFO DeviceInfoSet, } RegCloseKey(subKey); } + /* Allow enumeration to continue */ + l = ERROR_SUCCESS; } } } @@ -2241,6 +2247,8 @@ static void SETUPDI_EnumerateDevices(HDEVINFO DeviceInfoSet, const GUID *class, subKeyName, subKey, class, flags); RegCloseKey(subKey); } + /* Allow enumeration to continue */ + l = ERROR_SUCCESS; } } }
1
0
0
0
Juan Lang : setupapi: Implement SetupDiDeleteDevRegKey.
by Alexandre Julliard
15 Oct '07
15 Oct '07
Module: wine Branch: master Commit: 8b5faacfb400279641b3c88801fed9775aafc700 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8b5faacfb400279641b3c8880…
Author: Juan Lang <juan.lang(a)gmail.com> Date: Fri Oct 12 08:26:31 2007 -0700 setupapi: Implement SetupDiDeleteDevRegKey. --- dlls/setupapi/devinst.c | 125 ++++++++++++++++++++++++++++++++++++++++++- dlls/setupapi/setupapi.spec | 2 +- include/setupapi.h | 2 +- 3 files changed, 125 insertions(+), 4 deletions(-) diff --git a/dlls/setupapi/devinst.c b/dlls/setupapi/devinst.c index 0a6bed8..4087710 100644 --- a/dlls/setupapi/devinst.c +++ b/dlls/setupapi/devinst.c @@ -439,8 +439,8 @@ static HKEY SETUPDI_CreateDrvKey(struct DeviceInfo *devInfo) KEY_ALL_ACCESS, NULL, &classKey, NULL); if (!l) { - static const WCHAR fmt[] = { '%','0','4','d',0 }; - WCHAR devId[5]; + static const WCHAR fmt[] = { '%','0','4','u',0 }; + WCHAR devId[10]; sprintfW(devId, fmt, devInfo->devId); RegCreateKeyExW(classKey, devId, 0, NULL, 0, KEY_READ | KEY_WRITE, @@ -3678,3 +3678,124 @@ HKEY WINAPI SetupDiOpenDevRegKey( } return key; } + +static BOOL SETUPDI_DeleteDevKey(struct DeviceInfo *devInfo) +{ + HKEY enumKey; + BOOL ret = FALSE; + LONG l; + + l = RegCreateKeyExW(HKEY_LOCAL_MACHINE, Enum, 0, NULL, 0, KEY_ALL_ACCESS, + NULL, &enumKey, NULL); + if (!l) + { + ret = RegDeleteTreeW(enumKey, devInfo->instanceId); + RegCloseKey(enumKey); + } + else + SetLastError(l); + return ret; +} + +static BOOL SETUPDI_DeleteDrvKey(struct DeviceInfo *devInfo) +{ + static const WCHAR slash[] = { '\\',0 }; + WCHAR classKeyPath[MAX_PATH]; + HKEY classKey; + LONG l; + BOOL ret = FALSE; + + lstrcpyW(classKeyPath, ControlClass); + lstrcatW(classKeyPath, slash); + SETUPDI_GuidToString(&devInfo->set->ClassGuid, + classKeyPath + lstrlenW(classKeyPath)); + l = RegCreateKeyExW(HKEY_LOCAL_MACHINE, classKeyPath, 0, NULL, 0, + KEY_ALL_ACCESS, NULL, &classKey, NULL); + if (!l) + { + static const WCHAR fmt[] = { '%','0','4','u',0 }; + WCHAR devId[10]; + + sprintfW(devId, fmt, devInfo->devId); + ret = RegDeleteTreeW(classKey, devId); + RegCloseKey(classKey); + } + else + SetLastError(l); + return ret; +} + +/*********************************************************************** + * SetupDiOpenDevRegKey (SETUPAPI.@) + */ +BOOL WINAPI SetupDiDeleteDevRegKey( + HDEVINFO DeviceInfoSet, + PSP_DEVINFO_DATA DeviceInfoData, + DWORD Scope, + DWORD HwProfile, + DWORD KeyType) +{ + struct DeviceInfoSet *set = (struct DeviceInfoSet *)DeviceInfoSet; + struct DeviceInfo *devInfo; + BOOL ret = FALSE; + + TRACE("%p %p %d %d %d\n", DeviceInfoSet, DeviceInfoData, Scope, HwProfile, + KeyType); + + if (!DeviceInfoSet || DeviceInfoSet == (HDEVINFO)INVALID_HANDLE_VALUE) + { + SetLastError(ERROR_INVALID_HANDLE); + return FALSE; + } + if (set->magic != SETUP_DEVICE_INFO_SET_MAGIC) + { + SetLastError(ERROR_INVALID_HANDLE); + return FALSE; + } + if (!DeviceInfoData || DeviceInfoData->cbSize != sizeof(SP_DEVINFO_DATA) + || !DeviceInfoData->Reserved) + { + SetLastError(ERROR_INVALID_PARAMETER); + return FALSE; + } + if (Scope != DICS_FLAG_GLOBAL && Scope != DICS_FLAG_CONFIGSPECIFIC) + { + SetLastError(ERROR_INVALID_FLAGS); + return FALSE; + } + if (KeyType != DIREG_DEV && KeyType != DIREG_DRV) + { + SetLastError(ERROR_INVALID_FLAGS); + return FALSE; + } + devInfo = (struct DeviceInfo *)DeviceInfoData->Reserved; + if (devInfo->set != set) + { + SetLastError(ERROR_INVALID_PARAMETER); + return FALSE; + } + if (devInfo->phantom) + { + SetLastError(ERROR_DEVINFO_NOT_REGISTERED); + return FALSE; + } + if (Scope != DICS_FLAG_GLOBAL) + FIXME("unimplemented for scope %d\n", Scope); + switch (KeyType) + { + case DIREG_DEV: + ret = SETUPDI_DeleteDevKey(devInfo); + break; + case DIREG_DRV: + ret = SETUPDI_DeleteDrvKey(devInfo); + break; + case DIREG_BOTH: + ret = SETUPDI_DeleteDevKey(devInfo); + if (ret) + ret = SETUPDI_DeleteDrvKey(devInfo); + break; + default: + WARN("unknown KeyType %d\n", KeyType); + } + return ret; +} diff --git a/dlls/setupapi/setupapi.spec b/dlls/setupapi/setupapi.spec index f6ed8ed..8f5d78c 100644 --- a/dlls/setupapi/setupapi.spec +++ b/dlls/setupapi/setupapi.spec @@ -292,7 +292,7 @@ @ stdcall SetupDiCreateDeviceInterfaceW(ptr ptr ptr wstr long ptr) @ stdcall SetupDiCreateDeviceInterfaceRegKeyA(ptr ptr long long ptr ptr) @ stdcall SetupDiCreateDeviceInterfaceRegKeyW(ptr ptr long long ptr ptr) -@ stub SetupDiDeleteDevRegKey +@ stdcall SetupDiDeleteDevRegKey(ptr ptr long long long) @ stub SetupDiDeleteDeviceInfo @ stub SetupDiDeleteDeviceInterfaceData @ stdcall SetupDiDeleteDeviceInterfaceRegKey(ptr ptr long) diff --git a/include/setupapi.h b/include/setupapi.h index 9379725..8e14f91 100644 --- a/include/setupapi.h +++ b/include/setupapi.h @@ -1469,7 +1469,7 @@ HKEY WINAPI SetupDiCreateDevRegKeyW(HDEVINFO, PSP_DEVINFO_DATA, DWORD, DWORD BOOL WINAPI SetupDiDeleteDeviceInfo(HDEVINFO, PSP_DEVINFO_DATA); BOOL WINAPI SetupDiDeleteDeviceInterfaceData(HDEVINFO, PSP_DEVICE_INTERFACE_DATA); BOOL WINAPI SetupDiDeleteDeviceInterfaceRegKey(HDEVINFO, PSP_DEVICE_INTERFACE_DATA, DWORD); -BOOL WINAPI SetupDiDeleteDevRegKey(HDEVINFO, PSP_DEVICE_INTERFACE_DATA, DWORD, DWORD, DWORD); +BOOL WINAPI SetupDiDeleteDevRegKey(HDEVINFO, PSP_DEVINFO_DATA, DWORD, DWORD, DWORD); BOOL WINAPI SetupDiDestroyClassImageList(PSP_CLASSIMAGELIST_DATA); BOOL WINAPI SetupDiDestroyDeviceInfoList(HDEVINFO); BOOL WINAPI SetupDiDestroyDriverInfoList(HDEVINFO, PSP_DEVINFO_DATA, DWORD);
1
0
0
0
Juan Lang : setupapi: Make error checking in SetupDiCreateDevRegKeyW more like that in SetupDiOpenDevRegKey .
by Alexandre Julliard
15 Oct '07
15 Oct '07
Module: wine Branch: master Commit: 36229a74d1c1fcab58c56ff9bf23326707d5832c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=36229a74d1c1fcab58c56ff9b…
Author: Juan Lang <juan.lang(a)gmail.com> Date: Fri Oct 12 08:25:51 2007 -0700 setupapi: Make error checking in SetupDiCreateDevRegKeyW more like that in SetupDiOpenDevRegKey. --- dlls/setupapi/devinst.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/dlls/setupapi/devinst.c b/dlls/setupapi/devinst.c index 9ac5008..0a6bed8 100644 --- a/dlls/setupapi/devinst.c +++ b/dlls/setupapi/devinst.c @@ -1264,6 +1264,16 @@ HKEY WINAPI SetupDiCreateDevRegKeyW( SetLastError(ERROR_INVALID_PARAMETER); return INVALID_HANDLE_VALUE; } + if (Scope != DICS_FLAG_GLOBAL && Scope != DICS_FLAG_CONFIGSPECIFIC) + { + SetLastError(ERROR_INVALID_FLAGS); + return INVALID_HANDLE_VALUE; + } + if (KeyType != DIREG_DEV && KeyType != DIREG_DRV) + { + SetLastError(ERROR_INVALID_FLAGS); + return INVALID_HANDLE_VALUE; + } if (devInfo->phantom) { SetLastError(ERROR_DEVINFO_NOT_REGISTERED);
1
0
0
0
Juan Lang : setupapi: Implement SetupDiOpenDevRegKey.
by Alexandre Julliard
15 Oct '07
15 Oct '07
Module: wine Branch: master Commit: 629123bae4ef4a8eb7e0dd390936b34ed0613ac6 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=629123bae4ef4a8eb7e0dd390…
Author: Juan Lang <juan.lang(a)gmail.com> Date: Fri Oct 12 08:25:24 2007 -0700 setupapi: Implement SetupDiOpenDevRegKey. --- dlls/setupapi/devinst.c | 99 ++++++++++++++++++++++++++++++++++++++++- dlls/setupapi/tests/devinst.c | 7 --- 2 files changed, 97 insertions(+), 9 deletions(-) diff --git a/dlls/setupapi/devinst.c b/dlls/setupapi/devinst.c index 645211a..9ac5008 100644 --- a/dlls/setupapi/devinst.c +++ b/dlls/setupapi/devinst.c @@ -3558,6 +3558,46 @@ BOOL WINAPI SetupDiGetDeviceInstallParamsA( return FALSE; } +static HKEY SETUPDI_OpenDevKey(struct DeviceInfo *devInfo, REGSAM samDesired) +{ + HKEY enumKey, key = INVALID_HANDLE_VALUE; + LONG l; + + l = RegCreateKeyExW(HKEY_LOCAL_MACHINE, Enum, 0, NULL, 0, KEY_ALL_ACCESS, + NULL, &enumKey, NULL); + if (!l) + { + RegOpenKeyExW(enumKey, devInfo->instanceId, 0, samDesired, &key); + RegCloseKey(enumKey); + } + return key; +} + +static HKEY SETUPDI_OpenDrvKey(struct DeviceInfo *devInfo, REGSAM samDesired) +{ + static const WCHAR slash[] = { '\\',0 }; + WCHAR classKeyPath[MAX_PATH]; + HKEY classKey, key = INVALID_HANDLE_VALUE; + LONG l; + + lstrcpyW(classKeyPath, ControlClass); + lstrcatW(classKeyPath, slash); + SETUPDI_GuidToString(&devInfo->set->ClassGuid, + classKeyPath + lstrlenW(classKeyPath)); + l = RegCreateKeyExW(HKEY_LOCAL_MACHINE, classKeyPath, 0, NULL, 0, + KEY_ALL_ACCESS, NULL, &classKey, NULL); + if (!l) + { + static const WCHAR fmt[] = { '%','0','4','u',0 }; + WCHAR devId[10]; + + sprintfW(devId, fmt, devInfo->devId); + RegOpenKeyExW(classKey, devId, 0, samDesired, &key); + RegCloseKey(classKey); + } + return key; +} + /*********************************************************************** * SetupDiOpenDevRegKey (SETUPAPI.@) */ @@ -3569,7 +3609,62 @@ HKEY WINAPI SetupDiOpenDevRegKey( DWORD KeyType, REGSAM samDesired) { - FIXME("%p %p %d %d %d %x\n", DeviceInfoSet, DeviceInfoData, + struct DeviceInfoSet *set = (struct DeviceInfoSet *)DeviceInfoSet; + struct DeviceInfo *devInfo; + HKEY key = INVALID_HANDLE_VALUE; + + TRACE("%p %p %d %d %d %x\n", DeviceInfoSet, DeviceInfoData, Scope, HwProfile, KeyType, samDesired); - return INVALID_HANDLE_VALUE; + + if (!DeviceInfoSet || DeviceInfoSet == (HDEVINFO)INVALID_HANDLE_VALUE) + { + SetLastError(ERROR_INVALID_HANDLE); + return INVALID_HANDLE_VALUE; + } + if (set->magic != SETUP_DEVICE_INFO_SET_MAGIC) + { + SetLastError(ERROR_INVALID_HANDLE); + return INVALID_HANDLE_VALUE; + } + if (!DeviceInfoData || DeviceInfoData->cbSize != sizeof(SP_DEVINFO_DATA) + || !DeviceInfoData->Reserved) + { + SetLastError(ERROR_INVALID_PARAMETER); + return INVALID_HANDLE_VALUE; + } + if (Scope != DICS_FLAG_GLOBAL && Scope != DICS_FLAG_CONFIGSPECIFIC) + { + SetLastError(ERROR_INVALID_FLAGS); + return INVALID_HANDLE_VALUE; + } + if (KeyType != DIREG_DEV && KeyType != DIREG_DRV) + { + SetLastError(ERROR_INVALID_FLAGS); + return INVALID_HANDLE_VALUE; + } + devInfo = (struct DeviceInfo *)DeviceInfoData->Reserved; + if (devInfo->set != set) + { + SetLastError(ERROR_INVALID_PARAMETER); + return INVALID_HANDLE_VALUE; + } + if (devInfo->phantom) + { + SetLastError(ERROR_DEVINFO_NOT_REGISTERED); + return INVALID_HANDLE_VALUE; + } + if (Scope != DICS_FLAG_GLOBAL) + FIXME("unimplemented for scope %d\n", Scope); + switch (KeyType) + { + case DIREG_DEV: + key = SETUPDI_OpenDevKey(devInfo, samDesired); + break; + case DIREG_DRV: + key = SETUPDI_OpenDrvKey(devInfo, samDesired); + break; + default: + WARN("unknown KeyType %d\n", KeyType); + } + return key; } diff --git a/dlls/setupapi/tests/devinst.c b/dlls/setupapi/tests/devinst.c index eeec247..115da83 100644 --- a/dlls/setupapi/tests/devinst.c +++ b/dlls/setupapi/tests/devinst.c @@ -618,39 +618,33 @@ static void testDevRegKey(void) ok(ret, "SetupDiCreateDeviceInfoA failed: %08x\n", GetLastError()); SetLastError(0xdeadbeef); key = pSetupDiOpenDevRegKey(NULL, NULL, 0, 0, 0, 0); - todo_wine ok(key == INVALID_HANDLE_VALUE && GetLastError() == ERROR_INVALID_HANDLE, "Expected ERROR_INVALID_HANDLE, got %d\n", GetLastError()); SetLastError(0xdeadbeef); key = pSetupDiOpenDevRegKey(set, NULL, 0, 0, 0, 0); - todo_wine ok(key == INVALID_HANDLE_VALUE && GetLastError() == ERROR_INVALID_PARAMETER, "Expected ERROR_INVALID_PARAMETER, got %d\n", GetLastError()); SetLastError(0xdeadbeef); key = pSetupDiOpenDevRegKey(set, &devInfo, 0, 0, 0, 0); - todo_wine ok(key == INVALID_HANDLE_VALUE && GetLastError() == ERROR_INVALID_FLAGS, "Expected ERROR_INVALID_FLAGS, got %d\n", GetLastError()); SetLastError(0xdeadbeef); key = pSetupDiOpenDevRegKey(set, &devInfo, DICS_FLAG_GLOBAL, 0, 0, 0); - todo_wine ok(key == INVALID_HANDLE_VALUE && GetLastError() == ERROR_INVALID_FLAGS, "Expected ERROR_INVALID_FLAGS, got %d\n", GetLastError()); SetLastError(0xdeadbeef); key = pSetupDiOpenDevRegKey(set, &devInfo, DICS_FLAG_GLOBAL, 0, DIREG_BOTH, 0); - todo_wine ok(key == INVALID_HANDLE_VALUE && GetLastError() == ERROR_INVALID_FLAGS, "Expected ERROR_INVALID_FLAGS, got %d\n", GetLastError()); SetLastError(0xdeadbeef); key = pSetupDiOpenDevRegKey(set, &devInfo, DICS_FLAG_GLOBAL, 0, DIREG_DRV, 0); - todo_wine ok(key == INVALID_HANDLE_VALUE && GetLastError() == ERROR_DEVINFO_NOT_REGISTERED, "Expected ERROR_DEVINFO_NOT_REGISTERED, got %08x\n", GetLastError()); @@ -687,7 +681,6 @@ static void testDevRegKey(void) "Expected ERROR_INVALID_DATA, got %08x\n", GetLastError()); key = pSetupDiOpenDevRegKey(set, &devInfo, DICS_FLAG_GLOBAL, 0, DIREG_DRV, KEY_READ); - todo_wine ok(key != INVALID_HANDLE_VALUE, "SetupDiOpenDevRegKey failed: %08x\n", GetLastError()); ret = pSetupDiCallClassInstaller(DIF_REMOVE, set, &devInfo);
1
0
0
0
Juan Lang : setupapi: Test SetupDiOpenDevRegKey.
by Alexandre Julliard
15 Oct '07
15 Oct '07
Module: wine Branch: master Commit: 559f89afd293547d842f7644f785521cd23f32ec URL:
http://source.winehq.org/git/wine.git/?a=commit;h=559f89afd293547d842f7644f…
Author: Juan Lang <juan.lang(a)gmail.com> Date: Fri Oct 12 08:24:27 2007 -0700 setupapi: Test SetupDiOpenDevRegKey. --- dlls/setupapi/tests/devinst.c | 118 +++++++++++++++++++++++++++++++++++++++++ 1 files changed, 118 insertions(+), 0 deletions(-) diff --git a/dlls/setupapi/tests/devinst.c b/dlls/setupapi/tests/devinst.c index 009b94a..eeec247 100644 --- a/dlls/setupapi/tests/devinst.c +++ b/dlls/setupapi/tests/devinst.c @@ -36,11 +36,14 @@ static HMODULE hSetupAPI; static HDEVINFO (WINAPI *pSetupDiCreateDeviceInfoList)(GUID*,HWND); static HDEVINFO (WINAPI *pSetupDiCreateDeviceInfoListExW)(GUID*,HWND,PCWSTR,PVOID); static BOOL (WINAPI *pSetupDiCreateDeviceInterfaceA)(HDEVINFO, PSP_DEVINFO_DATA, const GUID *, PCSTR, DWORD, PSP_DEVICE_INTERFACE_DATA); +static BOOL (WINAPI *pSetupDiCallClassInstaller)(DI_FUNCTION, HDEVINFO, PSP_DEVINFO_DATA); static BOOL (WINAPI *pSetupDiDestroyDeviceInfoList)(HDEVINFO); static BOOL (WINAPI *pSetupDiEnumDeviceInfo)(HDEVINFO, DWORD, PSP_DEVINFO_DATA); static BOOL (WINAPI *pSetupDiEnumDeviceInterfaces)(HDEVINFO, PSP_DEVINFO_DATA, const GUID *, DWORD, PSP_DEVICE_INTERFACE_DATA); static BOOL (WINAPI *pSetupDiInstallClassA)(HWND, PCSTR, DWORD, HSPFILEQ); static HKEY (WINAPI *pSetupDiOpenClassRegKeyExA)(GUID*,REGSAM,DWORD,PCSTR,PVOID); +static HKEY (WINAPI *pSetupDiOpenDevRegKey)(HDEVINFO, PSP_DEVINFO_DATA, DWORD, DWORD, DWORD, REGSAM); +static HKEY (WINAPI *pSetupDiCreateDevRegKeyW)(HDEVINFO, PSP_DEVINFO_DATA, DWORD, DWORD, DWORD, HINF, PCWSTR); static BOOL (WINAPI *pSetupDiCreateDeviceInfoA)(HDEVINFO, PCSTR, GUID *, PCSTR, HWND, DWORD, PSP_DEVINFO_DATA); static BOOL (WINAPI *pSetupDiGetDeviceInstanceIdA)(HDEVINFO, PSP_DEVINFO_DATA, PSTR, DWORD, PDWORD); static BOOL (WINAPI *pSetupDiGetDeviceInterfaceDetailA)(HDEVINFO, PSP_DEVICE_INTERFACE_DATA, PSP_DEVICE_INTERFACE_DETAIL_DATA_A, DWORD, PDWORD, PSP_DEVINFO_DATA); @@ -55,12 +58,15 @@ static void init_function_pointers(void) pSetupDiCreateDeviceInfoListExW = (void *)GetProcAddress(hSetupAPI, "SetupDiCreateDeviceInfoListExW"); pSetupDiCreateDeviceInterfaceA = (void *)GetProcAddress(hSetupAPI, "SetupDiCreateDeviceInterfaceA"); pSetupDiDestroyDeviceInfoList = (void *)GetProcAddress(hSetupAPI, "SetupDiDestroyDeviceInfoList"); + pSetupDiCallClassInstaller = (void *)GetProcAddress(hSetupAPI, "SetupDiCallClassInstaller"); pSetupDiEnumDeviceInfo = (void *)GetProcAddress(hSetupAPI, "SetupDiEnumDeviceInfo"); pSetupDiEnumDeviceInterfaces = (void *)GetProcAddress(hSetupAPI, "SetupDiEnumDeviceInterfaces"); pSetupDiGetDeviceInstanceIdA = (void *)GetProcAddress(hSetupAPI, "SetupDiGetDeviceInstanceIdA"); pSetupDiGetDeviceInterfaceDetailA = (void *)GetProcAddress(hSetupAPI, "SetupDiGetDeviceInterfaceDetailA"); pSetupDiInstallClassA = (void *)GetProcAddress(hSetupAPI, "SetupDiInstallClassA"); pSetupDiOpenClassRegKeyExA = (void *)GetProcAddress(hSetupAPI, "SetupDiOpenClassRegKeyExA"); + pSetupDiOpenDevRegKey = (void *)GetProcAddress(hSetupAPI, "SetupDiOpenDevRegKey"); + pSetupDiCreateDevRegKeyW = (void *)GetProcAddress(hSetupAPI, "SetupDiCreateDevRegKeyW"); pSetupDiRegisterDeviceInfo = (void *)GetProcAddress(hSetupAPI, "SetupDiRegisterDeviceInfo"); } @@ -579,6 +585,117 @@ static void testGetDeviceInterfaceDetail(void) } } +static void testDevRegKey(void) +{ + static const WCHAR classKey[] = {'S','y','s','t','e','m','\\', + 'C','u','r','r','e','n','t','C','o','n','t','r','o','l','S','e','t','\\', + 'C','o','n','t','r','o','l','\\','C','l','a','s','s','\\', + '{','6','a','5','5','b','5','a','4','-','3','f','6','5','-', + '1','1','d','b','-','b','7','0','4','-', + '0','0','1','1','9','5','5','c','2','b','d','b','}',0}; + BOOL ret; + GUID guid = {0x6a55b5a4, 0x3f65, 0x11db, {0xb7,0x04, + 0x00,0x11,0x95,0x5c,0x2b,0xdb}}; + HDEVINFO set; + + if (!pSetupDiCreateDeviceInfoList || !pSetupDiDestroyDeviceInfoList || + !pSetupDiCreateDeviceInfoA || !pSetupDiOpenDevRegKey || + !pSetupDiRegisterDeviceInfo || !pSetupDiCreateDevRegKeyW || + !pSetupDiCallClassInstaller) + { + skip("No SetupDiOpenDevRegKey\n"); + return; + } + set = pSetupDiCreateDeviceInfoList(&guid, NULL); + ok(set != NULL, "SetupDiCreateDeviceInfoList failed: %d\n", GetLastError()); + if (set) + { + SP_DEVINFO_DATA devInfo = { sizeof(devInfo), { 0 } }; + HKEY key = INVALID_HANDLE_VALUE; + + ret = pSetupDiCreateDeviceInfoA(set, "ROOT\\LEGACY_BOGUS\\0000", &guid, + NULL, NULL, 0, &devInfo); + ok(ret, "SetupDiCreateDeviceInfoA failed: %08x\n", GetLastError()); + SetLastError(0xdeadbeef); + key = pSetupDiOpenDevRegKey(NULL, NULL, 0, 0, 0, 0); + todo_wine + ok(key == INVALID_HANDLE_VALUE && + GetLastError() == ERROR_INVALID_HANDLE, + "Expected ERROR_INVALID_HANDLE, got %d\n", GetLastError()); + SetLastError(0xdeadbeef); + key = pSetupDiOpenDevRegKey(set, NULL, 0, 0, 0, 0); + todo_wine + ok(key == INVALID_HANDLE_VALUE && + GetLastError() == ERROR_INVALID_PARAMETER, + "Expected ERROR_INVALID_PARAMETER, got %d\n", GetLastError()); + SetLastError(0xdeadbeef); + key = pSetupDiOpenDevRegKey(set, &devInfo, 0, 0, 0, 0); + todo_wine + ok(key == INVALID_HANDLE_VALUE && + GetLastError() == ERROR_INVALID_FLAGS, + "Expected ERROR_INVALID_FLAGS, got %d\n", GetLastError()); + SetLastError(0xdeadbeef); + key = pSetupDiOpenDevRegKey(set, &devInfo, DICS_FLAG_GLOBAL, 0, 0, 0); + todo_wine + ok(key == INVALID_HANDLE_VALUE && + GetLastError() == ERROR_INVALID_FLAGS, + "Expected ERROR_INVALID_FLAGS, got %d\n", GetLastError()); + SetLastError(0xdeadbeef); + key = pSetupDiOpenDevRegKey(set, &devInfo, DICS_FLAG_GLOBAL, 0, + DIREG_BOTH, 0); + todo_wine + ok(key == INVALID_HANDLE_VALUE && + GetLastError() == ERROR_INVALID_FLAGS, + "Expected ERROR_INVALID_FLAGS, got %d\n", GetLastError()); + SetLastError(0xdeadbeef); + key = pSetupDiOpenDevRegKey(set, &devInfo, DICS_FLAG_GLOBAL, 0, + DIREG_DRV, 0); + todo_wine + ok(key == INVALID_HANDLE_VALUE && + GetLastError() == ERROR_DEVINFO_NOT_REGISTERED, + "Expected ERROR_DEVINFO_NOT_REGISTERED, got %08x\n", GetLastError()); + SetLastError(0xdeadbeef); + ret = pSetupDiRegisterDeviceInfo(set, &devInfo, 0, NULL, NULL, NULL); + ok(ret, "SetupDiRegisterDeviceInfo failed: %08x\n", GetLastError()); + SetLastError(0xdeadbeef); + key = pSetupDiOpenDevRegKey(set, &devInfo, DICS_FLAG_GLOBAL, 0, + DIREG_DRV, 0); + /* The software key isn't created by default */ + todo_wine + ok(key == INVALID_HANDLE_VALUE && + GetLastError() == ERROR_KEY_DOES_NOT_EXIST, + "Expected ERROR_KEY_DOES_NOT_EXIST_EXIST, got %08x\n", GetLastError()); + SetLastError(0xdeadbeef); + key = pSetupDiOpenDevRegKey(set, &devInfo, DICS_FLAG_GLOBAL, 0, + DIREG_DEV, 0); + todo_wine + ok(key == INVALID_HANDLE_VALUE && + GetLastError() == ERROR_KEY_DOES_NOT_EXIST, + "Expected ERROR_KEY_DOES_NOT_EXIST_EXIST, got %08x\n", GetLastError()); + SetLastError(0xdeadbeef); + key = pSetupDiCreateDevRegKeyW(set, &devInfo, DICS_FLAG_GLOBAL, 0, + DIREG_DRV, NULL, NULL); + ok(key != INVALID_HANDLE_VALUE, "SetupDiCreateDevRegKey failed: %08x\n", + GetLastError()); + RegCloseKey(key); + SetLastError(0xdeadbeef); + key = pSetupDiOpenDevRegKey(set, &devInfo, DICS_FLAG_GLOBAL, 0, + DIREG_DRV, 0); + todo_wine + ok(key == INVALID_HANDLE_VALUE && + GetLastError() == ERROR_INVALID_DATA, + "Expected ERROR_INVALID_DATA, got %08x\n", GetLastError()); + key = pSetupDiOpenDevRegKey(set, &devInfo, DICS_FLAG_GLOBAL, 0, + DIREG_DRV, KEY_READ); + todo_wine + ok(key != INVALID_HANDLE_VALUE, "SetupDiOpenDevRegKey failed: %08x\n", + GetLastError()); + ret = pSetupDiCallClassInstaller(DIF_REMOVE, set, &devInfo); + pSetupDiDestroyDeviceInfoList(set); + } + RegDeleteTreeW(HKEY_LOCAL_MACHINE, classKey); +} + START_TEST(devinst) { init_function_pointers(); @@ -598,4 +715,5 @@ START_TEST(devinst) testRegisterDeviceInfo(); testCreateDeviceInterface(); testGetDeviceInterfaceDetail(); + testDevRegKey(); }
1
0
0
0
Juan Lang : setupapi: Improve parameter checking in SetupDiInstallClass.
by Alexandre Julliard
15 Oct '07
15 Oct '07
Module: wine Branch: master Commit: 8cacf12fe5dff8a35ed6555e3ca29fb9489a33d2 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8cacf12fe5dff8a35ed6555e3…
Author: Juan Lang <juan.lang(a)gmail.com> Date: Fri Oct 12 08:24:04 2007 -0700 setupapi: Improve parameter checking in SetupDiInstallClass. --- dlls/setupapi/devinst.c | 10 ++++++++++ dlls/setupapi/tests/devinst.c | 1 - 2 files changed, 10 insertions(+), 1 deletions(-) diff --git a/dlls/setupapi/devinst.c b/dlls/setupapi/devinst.c index 9ad0c03..645211a 100644 --- a/dlls/setupapi/devinst.c +++ b/dlls/setupapi/devinst.c @@ -3181,6 +3181,11 @@ BOOL WINAPI SetupDiInstallClassA( UNICODE_STRING FileNameW; BOOL Result; + if (!InfFileName) + { + SetLastError(ERROR_INVALID_PARAMETER); + return FALSE; + } if (!RtlCreateUnicodeStringFromAsciiz(&FileNameW, InfFileName)) { SetLastError(ERROR_NOT_ENOUGH_MEMORY); @@ -3283,6 +3288,11 @@ BOOL WINAPI SetupDiInstallClassW( FIXME("\n"); + if (!InfFileName) + { + SetLastError(ERROR_INVALID_PARAMETER); + return FALSE; + } if ((Flags & DI_NOVCP) && (FileQueue == NULL || FileQueue == INVALID_HANDLE_VALUE)) { SetLastError(ERROR_INVALID_PARAMETER); diff --git a/dlls/setupapi/tests/devinst.c b/dlls/setupapi/tests/devinst.c index f1f44af..009b94a 100644 --- a/dlls/setupapi/tests/devinst.c +++ b/dlls/setupapi/tests/devinst.c @@ -204,7 +204,6 @@ static void testInstallClass(void) create_inf_file(tmpfile + 2); ret = pSetupDiInstallClassA(NULL, NULL, 0, NULL); - todo_wine ok(!ret && GetLastError() == ERROR_INVALID_PARAMETER, "Expected ERROR_INVALID_PARAMETER, got %08x\n", GetLastError()); ret = pSetupDiInstallClassA(NULL, NULL, DI_NOVCP, NULL);
1
0
0
0
Juan Lang : setupapi: Remove bogus part of test.
by Alexandre Julliard
15 Oct '07
15 Oct '07
Module: wine Branch: master Commit: f2c85adbc3043e10a0382b9065a388eb2ea6b424 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f2c85adbc3043e10a0382b906…
Author: Juan Lang <juan.lang(a)gmail.com> Date: Fri Oct 12 08:23:43 2007 -0700 setupapi: Remove bogus part of test. --- dlls/setupapi/tests/devinst.c | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/dlls/setupapi/tests/devinst.c b/dlls/setupapi/tests/devinst.c index a27fa5b..f1f44af 100644 --- a/dlls/setupapi/tests/devinst.c +++ b/dlls/setupapi/tests/devinst.c @@ -190,7 +190,7 @@ static void testInstallClass(void) '{','6','a','5','5','b','5','a','4','-','3','f','6','5','-', '1','1','d','b','-','b','7','0','4','-', '0','0','1','1','9','5','5','c','2','b','d','b','}',0}; - char tmpfile[MAX_PATH], dstfile[MAX_PATH * 2]; + char tmpfile[MAX_PATH]; BOOL ret; if (!pSetupDiInstallClassA) @@ -219,10 +219,6 @@ static void testInstallClass(void) ret = pSetupDiInstallClassA(NULL, tmpfile, 0, NULL); ok(ret, "SetupDiInstallClassA failed: %08x\n", GetLastError()); RegDeleteKeyW(HKEY_LOCAL_MACHINE, classKey); - GetWindowsDirectoryA(dstfile, MAX_PATH); - lstrcatA(dstfile, "inf\\"); - lstrcatA(dstfile, tmpfile + 2); - DeleteFile(dstfile); DeleteFile(tmpfile); }
1
0
0
0
Gerald Pfeifer : widl: Fix build failure in parser.y.
by Alexandre Julliard
15 Oct '07
15 Oct '07
Module: wine Branch: master Commit: a7c6a27696353f20aac9015ac1a7d54ea63d07ac URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a7c6a27696353f20aac9015ac…
Author: Gerald Pfeifer <gerald(a)pfeifer.com> Date: Fri Oct 12 12:27:41 2007 +0200 widl: Fix build failure in parser.y. --- tools/widl/parser.y | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/tools/widl/parser.y b/tools/widl/parser.y index 06f1f77..afab0d2 100644 --- a/tools/widl/parser.y +++ b/tools/widl/parser.y @@ -514,6 +514,7 @@ uuid_string: | aSTRING { if (!is_valid_uuid($1)) yyerror("invalid UUID: %s", $1); $$ = parse_uuid($1); } + ; callconv: | tSTDCALL
1
0
0
0
Francois Gouget : winex11.drv: The 'lossy' parameter is always false so remove it.
by Alexandre Julliard
15 Oct '07
15 Oct '07
Module: wine Branch: master Commit: 860cf251f607b665be8385d2738d8690070b8ef3 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=860cf251f607b665be8385d27…
Author: Francois Gouget <fgouget(a)free.fr> Date: Fri Oct 12 17:44:13 2007 +0200 winex11.drv: The 'lossy' parameter is always false so remove it. --- dlls/winex11.drv/bitblt.c | 16 +++++++------- dlls/winex11.drv/dib.c | 50 +++++++++++++++++++----------------------- dlls/winex11.drv/graphics.c | 26 +++++++++++----------- dlls/winex11.drv/init.c | 2 +- dlls/winex11.drv/text.c | 4 +- dlls/winex11.drv/x11drv.h | 4 +- dlls/winex11.drv/xrender.c | 2 +- 7 files changed, 50 insertions(+), 54 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=860cf251f607b665be838…
1
0
0
0
← Newer
1
...
63
64
65
66
67
68
69
...
100
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
Results per page:
10
25
50
100
200