MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / ReplaceExtension

Function ReplaceExtension

rEFIt_UEFI/refit/lib.cpp:1575–1588  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1573}
1574
1575VOID ReplaceExtension(IN OUT CHAR16 *Path, IN CHAR16 *Extension)
1576{
1577 INTN i;
1578
1579 for (i = StrLen(Path); i >= 0; i--) {
1580 if (Path[i] == '.') {
1581 Path[i] = 0;
1582 break;
1583 }
1584 if (Path[i] == '\\' || Path[i] == '/')
1585 break;
1586 }
1587 StrCatS(Path, StrLen(Path)/sizeof(CHAR16)+1, Extension);
1588}
1589
1590CHAR16 * egFindExtension(IN CHAR16 *FileName)
1591{

Callers

nothing calls this directly

Calls 2

StrCatSFunction · 0.85
StrLenFunction · 0.50

Tested by

no test coverage detected