browser(firefox): fix build on Windows (#5275)

This commit is contained in:
Andrey Lushnikov 2021-02-03 09:50:35 -08:00 committed by GitHub
parent cb1b64289c
commit bbfbb1b2f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -1,2 +1,2 @@
1227
Changed: lushnikov@chromium.org Mon 01 Feb 2021 03:46:01 PM PST
1228
Changed: lushnikov@chromium.org Wed Feb 3 08:52:41 MST 2021

View File

@ -110,8 +110,8 @@ nsresult nsRemoteDebuggingPipe::Init(nsIRemoteDebuggingPipeClient* aClient) {
#if defined(_WIN32)
CHAR pipeReadStr[20];
CHAR pipeWriteStr[20];
GetEnvironmentVariable("PW_PIPE_READ", pipeReadStr, 20);
GetEnvironmentVariable("PW_PIPE_WRITE", pipeWriteStr, 20);
GetEnvironmentVariableA("PW_PIPE_READ", pipeReadStr, 20);
GetEnvironmentVariableA("PW_PIPE_WRITE", pipeWriteStr, 20);
readHandle = reinterpret_cast<HANDLE>(atoi(pipeReadStr));
writeHandle = reinterpret_cast<HANDLE>(atoi(pipeWriteStr));
#endif