mirror of https://github.com/x64dbg/TitanEngine
fix wchar_t array too large
This commit is contained in:
parent
2b40864813
commit
04fc4edbbf
|
|
@ -559,17 +559,17 @@ bool EngineCreatePathForFileW(wchar_t* szFileName)
|
|||
{
|
||||
|
||||
int i,j;
|
||||
wchar_t szFolderName[2 * MAX_PATH] = {};
|
||||
wchar_t szCreateFolder[2 * MAX_PATH] = {};
|
||||
wchar_t szFolderName[MAX_PATH] = {};
|
||||
wchar_t szCreateFolder[MAX_PATH] = {};
|
||||
|
||||
if(engineCreatePathForFiles)
|
||||
{
|
||||
i = lstrlenW(szFileName);
|
||||
while(szFileName[i] != '\\' && i > NULL)
|
||||
while(szFileName[i] != '\\' && i > 0)
|
||||
{
|
||||
i--;
|
||||
}
|
||||
if(i != NULL)
|
||||
if(i != 0)
|
||||
{
|
||||
RtlMoveMemory(szFolderName, szFileName, (i * 2) + 2);
|
||||
if(!CreateDirectoryW(szFolderName, NULL))
|
||||
|
|
|
|||
Loading…
Reference in New Issue