Commit 50873f01 authored by Jean-Paul Saman's avatar Jean-Paul Saman

Remove excess whitespace

parent 85a4b2ad
...@@ -193,9 +193,9 @@ static HRESULT RegisterClassID(HKEY hParent, REFCLSID rclsid, unsigned int versi ...@@ -193,9 +193,9 @@ static HRESULT RegisterClassID(HKEY hParent, REFCLSID rclsid, unsigned int versi
keyClose(keySetDef(keyCreate(hProgKey, "CLSID"), keyClose(keySetDef(keyCreate(hProgKey, "CLSID"),
psz_CLSID, psz_CLSID,
GUID_STRLEN)); GUID_STRLEN));
//hSubKey = keyClose(keyCreate(hBaseKey, "Insertable")); //hSubKey = keyClose(keyCreate(hBaseKey, "Insertable"));
RegCloseKey(hProgKey); RegCloseKey(hProgKey);
} }
if( isDefault ) if( isDefault )
...@@ -209,7 +209,7 @@ static HRESULT RegisterClassID(HKEY hParent, REFCLSID rclsid, unsigned int versi ...@@ -209,7 +209,7 @@ static HRESULT RegisterClassID(HKEY hParent, REFCLSID rclsid, unsigned int versi
keyClose(keySetDef(keyCreate(hProgKey, "CLSID"), keyClose(keySetDef(keyCreate(hProgKey, "CLSID"),
psz_CLSID, psz_CLSID,
GUID_STRLEN)); GUID_STRLEN));
keyClose(keySetDef(keyCreate(hProgKey, "CurVer"), keyClose(keySetDef(keyCreate(hProgKey, "CurVer"),
progId)); progId));
} }
...@@ -298,14 +298,14 @@ STDAPI DllRegisterServer(VOID) ...@@ -298,14 +298,14 @@ STDAPI DllRegisterServer(VOID)
char DllPath[MAX_PATH]; char DllPath[MAX_PATH];
DWORD DllPathLen=GetModuleFileNameA(h_instance, DllPath, sizeof(DllPath)) ; DWORD DllPathLen=GetModuleFileNameA(h_instance, DllPath, sizeof(DllPath)) ;
if( 0 == DllPathLen ) if( 0 == DllPathLen )
return E_UNEXPECTED; return E_UNEXPECTED;
HKEY hBaseKey; HKEY hBaseKey;
if( ERROR_SUCCESS != RegOpenKeyExA(HKEY_CLASSES_ROOT, "CLSID", 0, KEY_CREATE_SUB_KEY, &hBaseKey) ) if( ERROR_SUCCESS != RegOpenKeyExA(HKEY_CLASSES_ROOT, "CLSID", 0, KEY_CREATE_SUB_KEY, &hBaseKey) )
return SELFREG_E_CLASS; return SELFREG_E_CLASS;
RegisterClassID(hBaseKey, CLSID_VLCPlugin, 1, FALSE, DllPath, DllPathLen); RegisterClassID(hBaseKey, CLSID_VLCPlugin, 1, FALSE, DllPath, DllPathLen);
RegisterClassID(hBaseKey, CLSID_VLCPlugin2, 2, TRUE, DllPath, DllPathLen); RegisterClassID(hBaseKey, CLSID_VLCPlugin2, 2, TRUE, DllPath, DllPathLen);
...@@ -336,7 +336,7 @@ STDAPI DllRegisterServer(VOID) ...@@ -336,7 +336,7 @@ STDAPI DllRegisterServer(VOID)
// replace .exe by .tlb // replace .exe by .tlb
strcpy(DllPath+DllPathLen-4, ".tlb"); strcpy(DllPath+DllPathLen-4, ".tlb");
#endif #endif
#ifndef OLE2ANSI #ifndef OLE2ANSI
size_t typeLibPathLen = MultiByteToWideChar(CP_ACP, 0, DllPath, -1, NULL, 0); size_t typeLibPathLen = MultiByteToWideChar(CP_ACP, 0, DllPath, -1, NULL, 0);
if( typeLibPathLen > 0 ) if( typeLibPathLen > 0 )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment