1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-24 17:49:52 +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); char* buf = malloc(BUF_SIZE);
if (buf) if (buf)
{ {
DWORD size = GetPrivateProfileSectionA(name, buf, BUF_SIZE, ini->filename); DWORD size = GetPrivateProfileSectionA(name, buf, BUF_SIZE, filename);
if (size > 0) if (size > 0)
{ {
ini->sections[i].data = malloc(size + 2); ini->sections[i].data = malloc(size + 2);