Skip to content

Commit

Permalink
Merge pull request #38 from hkva-fork/fix-system-font-detection
Browse files Browse the repository at this point in the history
get_font_file_from_system: Fail if font path is empty
  • Loading branch information
Wassimulator authored May 9, 2024
2 parents a741e72 + 7bf1040 commit 57cf834
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,9 @@ bool get_font_file_from_system(char* output, int output_size, char* font) {
strncpy(output, value, output_size);
}
output[output_size - 1] = '\0';
result = true;
if (value[0] != '\0') {
result = true;
}
}
RegCloseKey(hkey);
}
Expand Down

0 comments on commit 57cf834

Please sign in to comment.