mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[SHELL32] Use Uppercase in SHELL32_GUIDToStringA/W (#6719)
Improve consistency. JIRA issue: CORE-19495 Reduced 4 failures in shell32:SHParseDisplayName.
This commit is contained in:
parent
713a360c74
commit
5eea72f61b
1 changed files with 5 additions and 5 deletions
|
@ -72,7 +72,7 @@ HRESULT SH_GetApidlFromDataObject(IDataObject *pDataObject, PIDLIST_ABSOLUTE* pp
|
||||||
|
|
||||||
static __inline int SHELL32_GUIDToStringA (REFGUID guid, LPSTR str)
|
static __inline int SHELL32_GUIDToStringA (REFGUID guid, LPSTR str)
|
||||||
{
|
{
|
||||||
return sprintf(str, "{%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}",
|
return sprintf(str, "{%08X-%04X-%04X-%02X%02X-%02X%02X%02X%02X%02X%02X}",
|
||||||
guid.Data1, guid.Data2, guid.Data3,
|
guid.Data1, guid.Data2, guid.Data3,
|
||||||
guid.Data4[0], guid.Data4[1], guid.Data4[2], guid.Data4[3],
|
guid.Data4[0], guid.Data4[1], guid.Data4[2], guid.Data4[3],
|
||||||
guid.Data4[4], guid.Data4[5], guid.Data4[6], guid.Data4[7]);
|
guid.Data4[4], guid.Data4[5], guid.Data4[6], guid.Data4[7]);
|
||||||
|
@ -81,10 +81,10 @@ static __inline int SHELL32_GUIDToStringA (REFGUID guid, LPSTR str)
|
||||||
static __inline int SHELL32_GUIDToStringW (REFGUID guid, LPWSTR str)
|
static __inline int SHELL32_GUIDToStringW (REFGUID guid, LPWSTR str)
|
||||||
{
|
{
|
||||||
static const WCHAR fmtW[] =
|
static const WCHAR fmtW[] =
|
||||||
{ '{','%','0','8','l','x','-','%','0','4','x','-','%','0','4','x','-',
|
{ '{','%','0','8','l','X','-','%','0','4','X','-','%','0','4','X','-',
|
||||||
'%','0','2','x','%','0','2','x','-',
|
'%','0','2','X','%','0','2','X','-',
|
||||||
'%','0','2','x','%','0','2','x','%','0','2','x','%','0','2','x',
|
'%','0','2','X','%','0','2','X','%','0','2','X','%','0','2','X',
|
||||||
'%','0','2','x','%','0','2','x','}',0 };
|
'%','0','2','X','%','0','2','X','}',0 };
|
||||||
return swprintf(str, fmtW,
|
return swprintf(str, fmtW,
|
||||||
guid.Data1, guid.Data2, guid.Data3,
|
guid.Data1, guid.Data2, guid.Data3,
|
||||||
guid.Data4[0], guid.Data4[1], guid.Data4[2], guid.Data4[3],
|
guid.Data4[0], guid.Data4[1], guid.Data4[2], guid.Data4[3],
|
||||||
|
|
Loading…
Reference in a new issue