Fix last commit missing one changed file, also fixup line endings

This commit is contained in:
UnknownShadow200 2022-01-05 15:16:10 +11:00
parent 9fda93eaac
commit fdd6e58063
5 changed files with 37 additions and 32 deletions

View file

@ -22,7 +22,7 @@
<ProjectGuid>{8A7D82BD-178A-4785-B41B-70EDE998920A}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>ClassiCube</RootNamespace>
<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
@ -41,7 +41,7 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v140</PlatformToolset>
<PlatformToolset>v142</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">

View file

@ -368,8 +368,13 @@ void Process_Exit(cc_result code) {
extern int interop_OpenTab(const char* url);
cc_result Process_StartOpen(const cc_string* args) {
char str[NATIVE_STR_LEN];
cc_result res;
Platform_EncodeUtf8(str, args);
return interop_OpenTab(str);
res = interop_OpenTab(str);
/* interop error code -> ClassiCube error code */
if (res == 1) res = ERR_INVALID_OPEN_URL;
return res;
}