[ODBCCP32]

The control panel automatically runs this applet without clicking on it, fix this wrong behaviour.
Patch by Lee Schröder
CORE-8323 #resolve #comment Thanks :)

svn path=/trunk/; revision=63625
This commit is contained in:
Hermès Bélusca-Maïto 2014-06-22 09:33:46 +00:00
parent 73f4d1ff00
commit adc64f21ca

View file

@ -19,6 +19,13 @@ CPlApplet(HWND hwndCpl,
LPARAM lParam1, LPARAM lParam1,
LPARAM lParam2) LPARAM lParam2)
{ {
switch (uMsg)
{
case CPL_INIT:
return TRUE;
case CPL_DBLCLK:
{
if (ODBCProc == NULL) if (ODBCProc == NULL)
{ {
TCHAR szBuffer[MAX_PATH]; TCHAR szBuffer[MAX_PATH];
@ -41,7 +48,7 @@ CPlApplet(HWND hwndCpl,
} }
else else
{ {
if(hLibrary) if (hLibrary)
{ {
FreeLibrary(hLibrary); FreeLibrary(hLibrary);
} }
@ -49,6 +56,10 @@ CPlApplet(HWND hwndCpl,
TerminateProcess(GetCurrentProcess(), -1); TerminateProcess(GetCurrentProcess(), -1);
return (LONG)-1; return (LONG)-1;
} }
}
}
return FALSE;
} }