Skip to content

Commit aa6cee0

Browse files
committed
Fixed filesystem code.
1 parent 40416fa commit aa6cee0

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

PipeServer/PipeServer.vcxproj

+4
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
<WarningLevel>Level3</WarningLevel>
9393
<Optimization>Disabled</Optimization>
9494
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;PIPESERVER_EXPORTS;NOMINMAX;%(PreprocessorDefinitions)</PreprocessorDefinitions>
95+
<LanguageStandard>stdcpp20</LanguageStandard>
9596
</ClCompile>
9697
<Link>
9798
<SubSystem>Windows</SubSystem>
@@ -105,6 +106,7 @@
105106
<WarningLevel>Level3</WarningLevel>
106107
<Optimization>Disabled</Optimization>
107108
<PreprocessorDefinitions>_DEBUG;_WINDOWS;_USRDLL;PIPESERVER_EXPORTS;NOMINMAX;RECLASSNET64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
109+
<LanguageStandard>stdcpp20</LanguageStandard>
108110
</ClCompile>
109111
<Link>
110112
<SubSystem>Windows</SubSystem>
@@ -120,6 +122,7 @@
120122
<FunctionLevelLinking>true</FunctionLevelLinking>
121123
<IntrinsicFunctions>true</IntrinsicFunctions>
122124
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;PIPESERVER_EXPORTS;NOMINMAX;%(PreprocessorDefinitions)</PreprocessorDefinitions>
125+
<LanguageStandard>stdcpp20</LanguageStandard>
123126
</ClCompile>
124127
<Link>
125128
<SubSystem>Windows</SubSystem>
@@ -137,6 +140,7 @@
137140
<FunctionLevelLinking>true</FunctionLevelLinking>
138141
<IntrinsicFunctions>true</IntrinsicFunctions>
139142
<PreprocessorDefinitions>NDEBUG;_WINDOWS;_USRDLL;PIPESERVER_EXPORTS;NOMINMAX;RECLASSNET64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
143+
<LanguageStandard>stdcpp20</LanguageStandard>
140144
</ClCompile>
141145
<Link>
142146
<SubSystem>Windows</SubSystem>

PipeServer/dllmain.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#include <experimental/filesystem>
2-
namespace fs = std::experimental::filesystem;
1+
#include <filesystem>
2+
namespace fs = std::filesystem;
33
#include <process.h>
44

55
#include "PipeStream/NamedPipeServerStream.hpp"
@@ -12,7 +12,7 @@ std::wstring CreatePipeName()
1212

1313
wchar_t szFileName[MAX_PATH];
1414
GetModuleFileNameW(nullptr, szFileName, MAX_PATH);
15-
name.append(fs::path(szFileName).filename());
15+
name /= fs::path(szFileName);
1616

1717
return name.wstring();
1818
}

0 commit comments

Comments
 (0)