diff options
author | Lars Kanis <lars@greiz-reinsdorf.de> | 2023-04-20 20:08:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-20 20:08:45 +0200 |
commit | 98cce6a671e333fcb6b6eeeb821885f03d0e2fa5 (patch) | |
tree | b9a2938952ce2a777b523eccc4a732653f4a0eda /spec/ffi/fixtures/PipeHelperWindows.c | |
parent | 82c018810d8bbd72428606ec4fd3b0fcf42caa5a (diff) | |
parent | 2589b0a4b931be9e61e1c279d1a577a492f18dfc (diff) | |
download | ffi-98cce6a671e333fcb6b6eeeb821885f03d0e2fa5.tar.gz |
Merge pull request #1028 from cfis/master
MSVC Test Support
Diffstat (limited to 'spec/ffi/fixtures/PipeHelperWindows.c')
-rw-r--r-- | spec/ffi/fixtures/PipeHelperWindows.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ffi/fixtures/PipeHelperWindows.c b/spec/ffi/fixtures/PipeHelperWindows.c index 0bdbd2e..31b4a2a 100644 --- a/spec/ffi/fixtures/PipeHelperWindows.c +++ b/spec/ffi/fixtures/PipeHelperWindows.c @@ -16,7 +16,7 @@ int pipeHelperCreatePipe(FD_TYPE pipefd[2]) sprintf( name, "\\\\.\\Pipe\\pipeHelper-%u-%i", (unsigned int)GetCurrentProcessId(), pipe_idx++ ); - pipefd[0] = CreateNamedPipe( name, PIPE_ACCESS_INBOUND | FILE_FLAG_OVERLAPPED, + pipefd[0] = CreateNamedPipeA( name, PIPE_ACCESS_INBOUND | FILE_FLAG_OVERLAPPED, PIPE_TYPE_BYTE | PIPE_WAIT, 1, // Number of pipes 5, // Out buffer size @@ -26,7 +26,7 @@ int pipeHelperCreatePipe(FD_TYPE pipefd[2]) if(pipefd[0] == INVALID_HANDLE_VALUE) return -1; - pipefd[1] = CreateFile( name, GENERIC_WRITE, 0, NULL, + pipefd[1] = CreateFileA( name, GENERIC_WRITE, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); |