Skip to content

Commit fe109a5

Browse files
committed
Undo changes from netcore.
1 parent 9c4d55a commit fe109a5

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

source/loaders/cs_loader/source/netcore_win.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
#include <cs_loader/host_environment.h>
55
#include <cs_loader/netcore_win.h>
66

7-
#include <portability/portability_executable_path.h>
8-
97
#include <inc/palclr.h>
108
#include <pal/prebuilt/inc/mscoree.h>
119

@@ -88,9 +86,8 @@ bool netcore_win::start()
8886

8987
bool netcore_win::config_assembly_name()
9088
{
91-
portability_executable_path_length length = 0;
92-
93-
if (portability_executable_path(appPath, &length) != 0)
89+
/* TODO: Replace by portability_executable_path */
90+
if (!::GetModuleFileName(NULL, appPath, MAX_LONGPATH))
9491
{
9592
log_write("metacall", LOG_LEVEL_ERROR, "Failed to get full path: % [ERRORCODE: %d]", this->loader_dll, GetLastError());
9693
return false;

0 commit comments

Comments
 (0)