diff options
Diffstat (limited to 'src/tools/windows/dump_syms')
-rw-r--r-- | src/tools/windows/dump_syms/dump_syms.cc | 12 | ||||
-rw-r--r-- | src/tools/windows/dump_syms/dump_syms.vcproj | 4 |
2 files changed, 7 insertions, 9 deletions
diff --git a/src/tools/windows/dump_syms/dump_syms.cc b/src/tools/windows/dump_syms/dump_syms.cc index 02645308..0018d308 100644 --- a/src/tools/windows/dump_syms/dump_syms.cc +++ b/src/tools/windows/dump_syms/dump_syms.cc @@ -39,20 +39,14 @@ using std::wstring; using google_airbag::PDBSourceLineWriter; -int main(int argc, char **argv) { +int wmain(int argc, wchar_t **argv) { if (argc < 2) { - fprintf(stderr, "Usage: %s <pdb file>\n", argv[0]); - return 1; - } - - wchar_t filename[_MAX_PATH]; - if (mbstowcs_s(NULL, filename, argv[1], _MAX_PATH) == -1) { - fprintf(stderr, "invalid multibyte character in %s\n", argv[1]); + fprintf(stderr, "Usage: %ws <pdb file>\n", argv[0]); return 1; } PDBSourceLineWriter writer; - if (!writer.Open(wstring(filename), PDBSourceLineWriter::ANY_FILE)) { + if (!writer.Open(wstring(argv[1]), PDBSourceLineWriter::ANY_FILE)) { fprintf(stderr, "Open failed\n"); return 1; } diff --git a/src/tools/windows/dump_syms/dump_syms.vcproj b/src/tools/windows/dump_syms/dump_syms.vcproj index c0a3390f..360b7d9b 100644 --- a/src/tools/windows/dump_syms/dump_syms.vcproj +++ b/src/tools/windows/dump_syms/dump_syms.vcproj @@ -183,6 +183,10 @@ RelativePath="..\..\..\common\windows\pdb_source_line_writer.h"
>
</File>
+ <File
+ RelativePath="..\..\..\common\windows\string_utils-inl.h"
+ >
+ </File>
</Filter>
<Filter
Name="Resource Files"
|