summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2011-10-24 17:03:23 +0200
committerStephan Bergmann <sbergman@redhat.com>2011-10-24 17:03:23 +0200
commitf01f25815385778769c67d238527f5824346623c (patch)
treef524e79117d995cba348329a9a5d8f4ad8391b48 /extensions
parent510199339092ab83ddaaa3bdfccb2f757024ca74 (diff)
Fixed Windows-only code broken by recent commit.
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/nsplugin/source/npshell.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/extensions/source/nsplugin/source/npshell.cxx b/extensions/source/nsplugin/source/npshell.cxx
index 25659d4a9c53..1967a928deeb 100644
--- a/extensions/source/nsplugin/source/npshell.cxx
+++ b/extensions/source/nsplugin/source/npshell.cxx
@@ -141,11 +141,10 @@ namespace {
bool extendEnvironment(boost::scoped_array< WCHAR > * environment) {
WCHAR path[MAX_PATH];
int len = MultiByteToWideChar(
- CP_ACP, MB_PRECOMPOSED, findInstallDir(), -1, brand, MAX_PATH);
+ CP_ACP, MB_PRECOMPOSED, findInstallDir(), -1, path, MAX_PATH);
//TODO: conversion errors
if (len == 0 ||
- (tools::buildPath(
- path, pathBegin, path + len - 1, MY_STRING(L"\\ure-link"))
+ (tools::buildPath(path, path, path + len - 1, MY_STRING(L"\\ure-link"))
== NULL))
{
return false;
@@ -260,7 +259,7 @@ int do_init_pipe()
}
WCHAR path[MAX_PATH];
int pathLen = MultiByteToWideChar(
- CP_ACP, MB_PRECOMPOSED, findProgramDir(), -1, brand, MAX_PATH);
+ CP_ACP, MB_PRECOMPOSED, findProgramDir(), -1, path, MAX_PATH);
//TODO: conversion errors
if (pathLen == 0) {
return NPERR_GENERIC_ERROR;