mirror of
https://github.com/GerbilSoft/rom-properties.git
synced 2025-06-18 11:35:38 -04:00
[win32] RP_ShellPropSheetExt: Initialize str_nl to 0.
Otherwise, if !str and !field.data.str, this ends up remaining uninitialized, which could cause shenanigans to occur. This scenario is unlikely, though...
This commit is contained in:
parent
7b955ef53c
commit
9e57292814
@ -687,7 +687,7 @@ int RP_ShellPropSheetExt_Private::initString(_In_ HWND hDlg, _In_ HWND hWndTab,
|
||||
// If string data wasn't specified, get the RFT_STRING data
|
||||
// from the RomFields::Field object.
|
||||
int lf_count = 0;
|
||||
tstring str_nl;
|
||||
tstring str_nl = 0;
|
||||
if (!str) {
|
||||
if (field.type != RomFields::RFT_STRING)
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user