Skip to content

Commit 64c064e

Browse files
committed
Fix previous commit
Conflicts: src/api/window_bindings.cc
1 parent d2cd2da commit 64c064e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/api/window_bindings.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,11 @@ WindowBindings::CallObjectMethod(const v8::FunctionCallbackInfo<v8::Value>& args
120120
WebCore::HTMLIFrameElement* iframe = WebCore::V8HTMLIFrameElement::toNative(frm);
121121
web_frame = WebKit::WebFrameImpl::fromFrame(iframe->contentFrame());
122122
}
123+
#if defined(OS_WIN)
124+
base::string16 jscript((WCHAR*)*v8::String::Value(args[3]));
125+
#else
123126
base::string16 jscript = *v8::String::Value(args[3]);
127+
#endif
124128
if (web_frame) {
125129
result = web_frame->executeScriptAndReturnValue(WebScriptSource(jscript));
126130
}

src/renderer/nw_render_view_observer.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ void NwRenderViewObserver::OnDocumentCallback(RenderViewImpl* rv,
102102
if (js_fn.empty())
103103
return;
104104
std::string content;
105-
base::FilePath path = rv->renderer_preferences_.nw_app_root_path.Append(js_fn);
105+
base::FilePath path = rv->renderer_preferences_.nw_app_root_path.AppendASCII(js_fn);
106106
if (!file_util::ReadFileToString(path, &content)) {
107107
LOG(WARNING) << "Failed to load js script file: " << path.value();
108108
return;

0 commit comments

Comments
 (0)