1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

fix filename

This commit is contained in:
FunkyFr3sh 2023-10-17 18:31:18 +02:00
parent d7ed6bd7bc
commit d3a1c821c8

View File

@ -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);