fix filename
This commit is contained in:
parent
d7ed6bd7bc
commit
d3a1c821c8
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ void ini_create(INIFILE* ini, char* filename)
|
|||
char* buf = malloc(BUF_SIZE);
|
||||
if (buf)
|
||||
{
|
||||
DWORD size = GetPrivateProfileSectionA(name, buf, BUF_SIZE, ini->filename);
|
||||
DWORD size = GetPrivateProfileSectionA(name, buf, BUF_SIZE, filename);
|
||||
if (size > 0)
|
||||
{
|
||||
ini->sections[i].data = malloc(size + 2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue