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:
parent
d7ed6bd7bc
commit
d3a1c821c8
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user