Merge pull request #13261 from ISylvox/fix-windows-build
Complete bc2e8d9
so that Windows can be built
This commit is contained in:
commit
2c7b4c2053
2 changed files with 2 additions and 2 deletions
|
@ -214,7 +214,7 @@ void AudioDriverWASAPI::thread_func(void *p_udata) {
|
|||
if (ad->active) {
|
||||
ad->lock();
|
||||
|
||||
ad->audio_server_process(ad->buffer_frames, ad->samples_in.ptr());
|
||||
ad->audio_server_process(ad->buffer_frames, ad->samples_in.ptrw());
|
||||
|
||||
ad->unlock();
|
||||
} else {
|
||||
|
|
|
@ -1843,7 +1843,7 @@ Error OS_Windows::execute(const String &p_path, const List<String> &p_arguments,
|
|||
modstr.resize(cmdline.size());
|
||||
for (int i = 0; i < cmdline.size(); i++)
|
||||
modstr[i] = cmdline[i];
|
||||
int ret = CreateProcessW(NULL, modstr.ptr(), NULL, NULL, 0, NORMAL_PRIORITY_CLASS, NULL, NULL, si_w, &pi.pi);
|
||||
int ret = CreateProcessW(NULL, modstr.ptrw(), NULL, NULL, 0, NORMAL_PRIORITY_CLASS, NULL, NULL, si_w, &pi.pi);
|
||||
ERR_FAIL_COND_V(ret == 0, ERR_CANT_FORK);
|
||||
|
||||
if (p_blocking) {
|
||||
|
|
Loading…
Reference in a new issue