mirror of
https://github.com/LongSoft/UEFITool.git
synced 2025-05-14 15:15:04 -04:00
Provide scanf with unsigned for strict compliance
This commit is contained in:
parent
0a634ebcbd
commit
337da5e632
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ UString guidToUString(const EFI_GUID & guid, bool convertToString)
|
|||
bool ustringToGuid(const UString & str, EFI_GUID & guid)
|
||||
{
|
||||
unsigned long p0;
|
||||
int p1, p2, p3, p4, p5, p6, p7, p8, p9, p10;
|
||||
unsigned p1, p2, p3, p4, p5, p6, p7, p8, p9, p10;
|
||||
|
||||
int err = std::sscanf(str.toLocal8Bit(), "%08lX-%04X-%04X-%02X%02X-%02X%02X%02X%02X%02X%02X",
|
||||
&p0, &p1, &p2, &p3, &p4, &p5, &p6, &p7, &p8, &p9, &p10);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue