summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/webplugin_delegate_pepper.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/renderer/webplugin_delegate_pepper.cc')
-rw-r--r--chrome/renderer/webplugin_delegate_pepper.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/renderer/webplugin_delegate_pepper.cc b/chrome/renderer/webplugin_delegate_pepper.cc
index 0fc4d82..dbfdb5c 100644
--- a/chrome/renderer/webplugin_delegate_pepper.cc
+++ b/chrome/renderer/webplugin_delegate_pepper.cc
@@ -610,7 +610,9 @@ NPError WebPluginDelegatePepper::Device2DGetStateContext(
std::string hex_md5 = MD5DigestToBase16(md5_result);
// Return the least significant 8 characters (i.e. 4 bytes)
// of the 32 character hexadecimal result as an int.
- base::HexStringToInt(hex_md5.substr(24), value);
+ int int_val;
+ base::HexStringToInt(hex_md5.substr(24), &int_val);
+ *value = int_val;
return NPERR_NO_ERROR;
}
return NPERR_GENERIC_ERROR;