Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
48811b2e
Commit
48811b2e
authored
Aug 19, 2016
by
Wei-Yin Chen (陳威尹)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Win32ErrorMessage on Unicode build
parent
11d6cb56
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
subprocess.cc
src/google/protobuf/compiler/subprocess.cc
+6
-6
No files found.
src/google/protobuf/compiler/subprocess.cc
View file @
48811b2e
...
...
@@ -261,12 +261,12 @@ string Subprocess::Win32ErrorMessage(DWORD error_code) {
char
*
message
;
// WTF?
FormatMessage
(
FORMAT_MESSAGE_ALLOCATE_BUFFER
|
FORMAT_MESSAGE_FROM_SYSTEM
|
FORMAT_MESSAGE_IGNORE_INSERTS
,
NULL
,
error_code
,
0
,
(
LPT
STR
)
&
message
,
// NOT A BUG!
0
,
NULL
);
FormatMessage
A
(
FORMAT_MESSAGE_ALLOCATE_BUFFER
|
FORMAT_MESSAGE_FROM_SYSTEM
|
FORMAT_MESSAGE_IGNORE_INSERTS
,
NULL
,
error_code
,
0
,
(
LP
STR
)
&
message
,
// NOT A BUG!
0
,
NULL
);
string
result
=
message
;
LocalFree
(
message
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment