Skip to content

Commit

Permalink
Change DllName type from WCHAR to char in octavelibczi.c
Browse files Browse the repository at this point in the history
Updated the DllName variable in the Initialize function from a
WCHAR array to a char array. This change modifies the data type
used to store the DLL name from a wide character string to a
regular character string, likely to handle the DLL name as a
standard string.
  • Loading branch information
ptahmose committed Oct 18, 2024
1 parent 9a30d3a commit 0d20879
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OctaveMex/octavelibczi.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ static void Initialize()
pfn_OnShutdown = (void(*)())GetProcAddress(hModule, "OnShutdown");
pfn_mexFunction = (void(*)(int, Parameter[], int, const Parameter[], struct IAppExtensionFunctions*))GetProcAddress(hModule, "mexFunction");
#else
static const WCHAR DllName[] = "libmexlibczi.so";
static const char DllName[] = "libmexlibczi.so";

Dl_info dl_info;
if (dladdr((void*)&Initialize, &dl_info) == 0)
Expand Down

0 comments on commit 0d20879

Please sign in to comment.