Skip to content

Commit

Permalink
Fix tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
Thrameos committed Feb 24, 2024
1 parent bab84f0 commit 2c0420e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions native/common/jp_platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ class Win32PlatformAdapter : public JPPlatformAdapter
virtual void loadLibrary(const char* path) override
{
JP_TRACE_IN("Win32PlatformAdapter::loadLibrary");
wchar_t *wpath = Py_DecodeLocale(path, NULL);
if (wpath == NULL)
{
JP_RAISE(PyExc_SystemError, "Unable to get JVM path with locale.");
}
wchar_t *wpath = Py_DecodeLocale(path, NULL);
if (wpath == NULL)
{
JP_RAISE(PyExc_SystemError, "Unable to get JVM path with locale.");
}
jvmLibrary = LoadLibraryW(wpath);
PyMem_RawFree(wpath);
PyMem_RawFree(wpath);
if (jvmLibrary == NULL)
{
JP_RAISE_OS_ERROR_WINDOWS( GetLastError(), path);
Expand Down

0 comments on commit 2c0420e

Please sign in to comment.