#endif
#if defined(_BH_WINDOWS)
- int length = GetCurrentDirectory(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;
- }
-
- results->data[0] = WASM_I32_VAL( length );
+ // The GetCurrentDirectory symbol is causing a linker error.
+ // For a hotfix, I am leaving these unimplemented for now,
+ // but they should be fixed asap.
+ //
+ // int length = GetCurrentDirectory(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;
+ // }
+
+ results->data[0] = WASM_I32_VAL(-1);
return NULL;
#endif
}
#endif
#if defined(_BH_WINDOWS)
- int result = SetCurrentDirectory(ONYX_PTR(params->data[0].of.i32));
- results->data[0] = WASM_I32_VAL(result ? 1 : 0);
+ // The SetCurrentDirectory symbol is causing a linker error.
+ // For a hotfix, I am leaving these unimplemented for now,
+ // but they should be fixed asap.
+ //
+ // int result = SetCurrentDirectory(ONYX_PTR(params->data[0].of.i32));
+ results->data[0] = WASM_I32_VAL(0);
return NULL;
#endif
}