summaryrefslogtreecommitdiff
path: root/cui/source/dialogs/winpluginlib.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cui/source/dialogs/winpluginlib.cpp')
-rw-r--r--cui/source/dialogs/winpluginlib.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/cui/source/dialogs/winpluginlib.cpp b/cui/source/dialogs/winpluginlib.cpp
index d1bdf9eb2002..242607952c99 100644
--- a/cui/source/dialogs/winpluginlib.cpp
+++ b/cui/source/dialogs/winpluginlib.cpp
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -36,7 +37,6 @@
#include <Shlwapi.h>
#include <stdio.h>
-
#define SO_PATH_SIZE 4096
#define MOZ_PLUGIN_DLL_NAME "npsopluginmi.dll"
extern "C" {
@@ -80,8 +80,7 @@ int lc_isInstalled(const char* realFilePath)
sprintf(sSoPath,"%s", realFilePath);
ret = 0;
}
- //ret = GetCurrentDirectory( SO_PATH_SIZE, sSoPath);
- //ret = GetEnvironmentVariable("prog", sSoPath, SO_PATH_SIZE);
+
// GetCurrentDirectory return the char number of the string
if(ret == 0){
DWORD dType = REG_SZ;
@@ -155,7 +154,6 @@ int lc_installPlugin(const char* realFilePath)
char sSoPath[SO_PATH_SIZE];
DWORD sState;
-
LONG ret;
ret = RegOpenKeyEx(HKEY_LOCAL_MACHINE, "SOFTWARE", 0, KEY_READ|KEY_WRITE, &hKeySoftware);
if(ret != ERROR_SUCCESS){
@@ -195,7 +193,6 @@ int lc_installPlugin(const char* realFilePath)
RegFlushKey(hStarOffice);
RegFlushKey(hMozillaPlugins);
-
if((realFilePath == NULL) || (strlen(realFilePath) == 0) || (strlen(realFilePath) >= SO_PATH_SIZE))
ret = -1;
else{
@@ -203,7 +200,6 @@ int lc_installPlugin(const char* realFilePath)
ret = 0;
}
- //ret = GetCurrentDirectory( SO_PATH_SIZE, sSoPath);
// GetCurrentDirectory return the char number of the string
if(ret == 0){
ret = RegSetValueEx( hStarOffice, "Path", 0, REG_SZ, (LPBYTE) sSoPath, strlen(sSoPath) + 1);
@@ -224,3 +220,5 @@ int lc_installPlugin(const char* realFilePath)
return ret;
}
}
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */