Skip to content
Snippets Groups Projects
Commit 36ba91e06948 authored by Yuya Nishihara's avatar Yuya Nishihara
Browse files

exewrapper: apply clang-format to silence test-check-clang-format.t

parent 7b48c616431d
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,7 @@
#define _tcscpy_s strcpy_s
#define _tcscat_s strcat_s
#define _countof(array) (sizeof(array)/sizeof(array[0]))
#define _countof(array) (sizeof(array) / sizeof(array[0]))
#endif
static TCHAR pyscript[MAX_PATH + 10];
......@@ -43,7 +43,7 @@
HANDLE hfind;
const char *err;
HMODULE pydll;
void(__cdecl * Py_SetPythonHome)(TCHAR *home);
void(__cdecl * Py_SetPythonHome)(TCHAR * home);
int(__cdecl * Py_Main)(int argc, TCHAR *argv[]);
if (GetModuleFileName(NULL, pyscript, _countof(pyscript)) == 0) {
......@@ -86,7 +86,7 @@
scenario, so let's load python dll from this dir. */
FindClose(hfind);
_tcscpy_s(pydllfile, _countof(pydllfile), pyhome);
_tcscat_s(pydllfile, _countof(pydllfile), _T("\\") _T(HGPYTHONLIB)
_T(".dll"));
_tcscat_s(pydllfile, _countof(pydllfile),
_T("\\") _T(HGPYTHONLIB) _T(".dll"));
pydll = LoadLibrary(pydllfile);
if (pydll == NULL) {
......@@ -91,6 +91,7 @@
pydll = LoadLibrary(pydllfile);
if (pydll == NULL) {
err = "failed to load private Python DLL " HGPYTHONLIB ".dll";
err = "failed to load private Python DLL " HGPYTHONLIB
".dll";
goto bail;
}
Py_SetPythonHome =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment