Skip to content

Commit

Permalink
3.2.196
Browse files Browse the repository at this point in the history
  • Loading branch information
Bureau Audit committed Sep 25, 2023
1 parent 7276b41 commit 45bf061
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
Binary file modified ORADAD.rc
Binary file not shown.
2 changes: 2 additions & 0 deletions ORADAD.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
<SubSystem>Console</SubSystem>
<OutputFile>$(OutDir)$(TargetName)-x86$(TargetExt)</OutputFile>
<GenerateMapFile>true</GenerateMapFile>
<ProgramDatabaseFile>$(OutDir)$(TargetName)-x86.pdb</ProgramDatabaseFile>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
Expand Down Expand Up @@ -133,6 +134,7 @@
<OutputFile>$(OutDir)$(TargetName)-x86$(TargetExt)</OutputFile>
<AdditionalOptions>/PDBALTPATH:%_PDB% %(AdditionalOptions)</AdditionalOptions>
<GenerateMapFile>true</GenerateMapFile>
<ProgramDatabaseFile>$(OutDir)$(TargetName)-x86.pdb</ProgramDatabaseFile>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
Expand Down
14 changes: 7 additions & 7 deletions Sysvol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ pProcessSysvolFile (
DWORD dwIdx = 0;
DWORD dwOutSize;
LPWSTR szNewFilePath;
LPWSTR szGuid;
LPWSTR szGuidPosition;
LPWSTR szShortFileName;
LARGE_INTEGER largeInt;
BOOL bCopyFile = FALSE;
Expand All @@ -551,7 +551,7 @@ pProcessSysvolFile (
}
}

pSysvolCrackName(szFileName, (LPWSTR)szDomainName, &szNewFilePath, &szGuid, &szShortFileName);
pSysvolCrackName(szFileName, (LPWSTR)szDomainName, &szNewFilePath, &szGuidPosition, &szShortFileName);

//
// Write sysvol.tsv
Expand All @@ -567,7 +567,7 @@ pProcessSysvolFile (
BufferWriteTab(pBuffer);

// Column 'guid'
_CallWriteAndGetMax(BufferWrite(pBuffer, szGuid), g_dwSysvolMaxLength[dwIdx]);
_CallWriteAndGetMax(BufferWriteStringWithLimit(pBuffer, szGuidPosition, GUID_STR_SIZE), g_dwSysvolMaxLength[dwIdx]);
++dwIdx;
BufferWriteTab(pBuffer);

Expand Down Expand Up @@ -673,7 +673,7 @@ pProcessSysvolFile (
WCHAR szOutPath[MAX_PATH];
BUFFER_DATA Buffer;

if (szGuid != NULL)
if (szGuidPosition != NULL)
{
if (pGlobalConfig->bOutputFiles == TRUE)
{
Expand All @@ -683,19 +683,19 @@ pProcessSysvolFile (
bResult = FormatNameAndCreateDirectory(
szOutPath, MAX_PATH,
L"%s\\%s\\%.*s",
pGlobalConfig->szFileSysvolOutDirectory, szDomainName, GUID_STR_SIZE, szGuid
pGlobalConfig->szFileSysvolOutDirectory, szDomainName, GUID_STR_SIZE, szGuidPosition
);
if (bResult == FALSE)
return FALSE;
}

if (szShortFileName != NULL)
{
swprintf_s(szOutPath, MAX_PATH, L"%s\\%.*s\\%llu_%s", szDomainName, GUID_STR_SIZE, szGuid, hArchiveName, szShortFileName);
swprintf_s(szOutPath, MAX_PATH, L"%s\\%.*s\\%llu_%s", szDomainName, GUID_STR_SIZE, szGuidPosition, hArchiveName, szShortFileName);
}
else
{
swprintf_s(szOutPath, MAX_PATH, L"%s\\%.*s\\%llu", szDomainName, GUID_STR_SIZE, szGuid, hArchiveName);
swprintf_s(szOutPath, MAX_PATH, L"%s\\%.*s\\%llu", szDomainName, GUID_STR_SIZE, szGuidPosition, hArchiveName);
}
}
else
Expand Down

0 comments on commit 45bf061

Please sign in to comment.