Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Unified Diff: native_client_sdk/src/examples/hello_world_c/hello_world_c.c

Issue 8883008: Update the NaCl SDK C example to handle removing module from VarFromUtf8 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Put copyright header back. Commit-bot hates me Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: native_client_sdk/src/examples/hello_world_c/hello_world_c.c
diff --git a/native_client_sdk/src/examples/hello_world_c/hello_world_c.c b/native_client_sdk/src/examples/hello_world_c/hello_world_c.c
index 939e724db6ce29aa2ce9151580ef0cf752faa273..23a64418034ec32b7b849d8f196f268246f6ce56 100644
--- a/native_client_sdk/src/examples/hello_world_c/hello_world_c.c
+++ b/native_client_sdk/src/examples/hello_world_c/hello_world_c.c
@@ -70,7 +70,7 @@ static char* VarToCStr(struct PP_Var var) {
*/
static struct PP_Var CStrToVar(const char* str) {
if (ppb_var_interface != NULL) {
- return ppb_var_interface->VarFromUtf8(module_id, str, strlen(str));
+ return ppb_var_interface->VarFromUtf8(str, strlen(str));
}
return PP_MakeUndefined();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698