Skip to content

Commit

Permalink
Set Unicode character set in project settings
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkrupinski committed Jun 9, 2021
1 parent 37b2cb5 commit 0bc0261
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Anubis/Anubis.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<CharacterSet>MultiByte</CharacterSet>
<CharacterSet>Unicode</CharacterSet>
<SpectreMitigation>false</SpectreMitigation>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>MultiByte</CharacterSet>
<CharacterSet>Unicode</CharacterSet>
<SpectreMitigation>false</SpectreMitigation>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
Expand Down
2 changes: 1 addition & 1 deletion Anubis/Config.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ VOID Config_init()
sprintf(path, "%ws/%s/", pathToDocuments, "Anubis");
if (PathFileExistsA(path)) {
strcat(path, "*");
WIN32_FIND_DATA foundData;
WIN32_FIND_DATAA foundData;
HANDLE found = FindFirstFileA(path, &foundData);

if (found != INVALID_HANDLE_VALUE) {
Expand Down
2 changes: 1 addition & 1 deletion Anubis/Interfaces.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ static uintptr_t** find(const wchar_t* module, const char* name)

char buf[100];
sprintf_s(buf, sizeof(buf), "Failed to find %s interface!", name);
MessageBox(NULL, buf, "Error", MB_OK | MB_ICONERROR);
MessageBoxA(NULL, buf, "Error", MB_OK | MB_ICONERROR);
exit(EXIT_FAILURE);
}

Expand Down

0 comments on commit 0bc0261

Please sign in to comment.