#endif
#if defined(_BH_WINDOWS)
- int length = GetCurrentDirectory(params->data[1].of.i32, ONYX_PTR(params->data[0].of.i32));
+ int length = GetCurrentDirectoryA(params->data[1].of.i32, ONYX_PTR(params->data[0].of.i32));
if (length == 0 || length > params->data[1].of.i32) {
results->data[0] = WASM_I32_VAL(-1);
return NULL;
#endif
#if defined(_BH_WINDOWS)
- int result = SetCurrentDirectory(ONYX_PTR(params->data[0].of.i32));
+ int result = SetCurrentDirectoryA(ONYX_PTR(params->data[0].of.i32));
results->data[0] = WASM_I32_VAL(result ? 1 : 0);
return NULL;
#endif
GB_DLL_IMPORT void WINAPI WakeByAddressSingle(void * Address);
GB_DLL_IMPORT BOOL WINAPI WaitOnAddress(volatile void * Address, void * compareAddress, size_t addressSize, DWORD milliseconds);
-GB_DLL_IMPORT DWORD GetCurrentDirectory(DWORD nBufferLength, char *lpBuffer);
-GB_DLL_IMPORT BOOL SetCurrentDirectory(char *lpPathName);
+GB_DLL_IMPORT DWORD GetCurrentDirectoryA(DWORD nBufferLength, char *lpBuffer);
+GB_DLL_IMPORT BOOL SetCurrentDirectoryA(char *lpPathName);
GB_DLL_IMPORT DWORD GetFileAttributesA(char *lpPathName);
GB_DLL_IMPORT BOOL SetFileAttributesA(char *lpPathName, DWORD attrs);
\ No newline at end of file