server-re/decomp/DBCServer_Release_x64/full/functions/0x1400a6d00.c

23 lines
679 B
C

/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
* Ghidra 12.1.2 decompiler output for 0x1400a6d00 FUN_1400a6d00
* Pseudocode, not original source. */
undefined8 * FUN_1400a6d00(undefined8 *param_1)
{
BOOL BVar1;
DWORD DVar2;
*param_1 = 0;
strncpy((char *)(param_1 + 0x11),".\\Server_Log\\",0x80);
BVar1 = CreateDirectoryA((LPCSTR)(param_1 + 0x11),(LPSECURITY_ATTRIBUTES)0x0);
if (BVar1 == 0) {
DVar2 = GetLastError();
if (DVar2 != 0xb7) {
printf("Couldn\'t create new svrlog directory[%u].\n");
}
}
InitializeCriticalSection((LPCRITICAL_SECTION)(param_1 + 0x21));
return param_1;
}