Commit 96b97971 authored by filatov's avatar filatov

fix a bug in cstrlastpathelement

parent 8bf3c1b5
......@@ -59,12 +59,12 @@
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<OutDir>$(SolutionDir)build\MSVC-$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)build\MSVC-$(Configuration)\obj\$(ProjectName)\</IntDir>
<OutDir>$(SolutionDir)build\msvc\$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)build\msvc\$(Configuration)\$(ProjectName)\</IntDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<OutDir>$(SolutionDir)build\MSVC-$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)build\MSVC-$(Configuration)\obj\$(ProjectName)\</IntDir>
<OutDir>$(SolutionDir)build\msvc\$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)build\msvc\$(Configuration)\$(ProjectName)\</IntDir>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
......
......@@ -243,7 +243,8 @@ const pchar_t * cstrlastpathelement(const pchar_t * str)
const pchar_t * p2 = pchar_rchr(str, '\\');
if(p<p2)p=p2;
#endif
else if(p == NULL) p = str;
if(p == NULL) p = str;
else p++;
return p;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment