mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
UPD: Use g_strstr_len function
This commit is contained in:
parent
0c3782965e
commit
e0e693ce95
1 changed files with 1 additions and 1 deletions
|
|
@ -125,7 +125,7 @@ begin
|
|||
if not Result then
|
||||
AMessage:= FormatMessage
|
||||
else try
|
||||
AChar:= g_strrstr(AContents, DESKTOP_KEY_KDE_BUG);
|
||||
AChar:= g_strstr_len(AContents, ALength, DESKTOP_KEY_KDE_BUG);
|
||||
if Assigned(AChar) then AChar^:= '#';
|
||||
Result:= g_key_file_load_from_data(FGKeyFile, AContents, ALength, G_KEY_FILE_NONE, @AError);
|
||||
if not Result then AMessage:= FormatMessage;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue