try again.

This commit is contained in:
love-code-yeyixiao 2024-03-16 11:27:07 +08:00
parent e61e832d2f
commit c19f929697
1 changed files with 2 additions and 1 deletions

View File

@ -436,7 +436,8 @@ _FX HDC Gui_CreateDCA(LPCSTR pwszDriver, LPCSTR pwszDevice, LPCSTR pszPort, co
return ret;
}
_FX HDC Gui_CreateDCW(LPCWSTR pwszDriver, LPCWSTR pwszDevice, LPCWSTR pszPort, const void* pdm) {
void* pdm2 = pdm;
void* pdm2;
memcpy(pdm2, pdm, sizeof(pdm));
#ifdef _WIN64
HDC ret = __sys_CreateDCW(pwszDriver, pwszDevice, pszPort, pdm);
#else