mirror of
https://github.com/chromium/crashpad.git
synced 2025-03-09 14:06:33 +00:00
win: Determine length of unloaded module names
Change-Id: I802b2a8a505cf53009c0c5648acdad7a44e9f0e7 Reviewed-on: https://chromium-review.googlesource.com/466598 Commit-Queue: Joshua Peraza <jperaza@chromium.org> Reviewed-by: Mark Mentovai <mark@chromium.org>
This commit is contained in:
parent
76a67a37b1
commit
45305395ad
@ -15,6 +15,7 @@
|
||||
#include "snapshot/win/process_snapshot_win.h"
|
||||
|
||||
#include <stddef.h>
|
||||
#include <wchar.h>
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
@ -325,8 +326,9 @@ void ProcessSnapshotWin::InitializeUnloadedModules() {
|
||||
uet.SizeOfImage,
|
||||
uet.CheckSum,
|
||||
uet.TimeDateStamp,
|
||||
base::UTF16ToUTF8(
|
||||
base::StringPiece16(uet.ImageName, arraysize(uet.ImageName)))));
|
||||
base::UTF16ToUTF8(base::StringPiece16(
|
||||
uet.ImageName,
|
||||
wcsnlen(uet.ImageName, arraysize(uet.ImageName))))));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user