1
1
Fork 0
mirror of https://github.com/pbatard/rufus.git synced 2024-08-14 23:57:05 +00:00

[args] Fix copy-paste errors during args checks

This commit is contained in:
Tsarevich Dmitry 2020-02-23 19:52:55 +03:00
parent 965a7ae9e0
commit 2253543a5c
No known key found for this signature in database
GPG key ID: E3C61298FF5B1274

View file

@ -646,7 +646,7 @@ char* get_token_data_file_indexed(const char* token, const char* filename, int i
goto out;
}
wtoken = utf8_to_wchar(token);
if (wfilename == NULL) {
if (wtoken == NULL) {
uprintf(conversion_error, token);
goto out;
}
@ -696,7 +696,7 @@ char* set_token_data_file(const char* token, const char* data, const char* filen
}
wtoken = utf8_to_wchar(token);
wtoken_len = wcslen(wtoken);
if (wfilename == NULL) {
if (wtoken == NULL) {
uprintf(conversion_error, token);
goto out;
}
@ -975,7 +975,7 @@ char* insert_section_data(const char* filename, const char* section, const char*
goto out;
}
wsection = utf8_to_wchar(section);
if (wfilename == NULL) {
if (wsection == NULL) {
uprintf(conversion_error, section);
goto out;
}