DllWinMainW fnDllWinMainW;
DllWinMainA fnDllWinMainA;
HWND hWindow;
- int nRetVal,i;
+ int i;
size_t nStrLen;
// Get command-line in argc-argv format
else
lptCmdLine = _T("");
- nRetVal = 0;
-
// Everything is all setup, so load the dll now
hDll = LoadLibrary(lptDllName);
if (hDll) {
if (fnDllWinMainW) {
// Convert the command-line string to unicode and call the dll function
lpwCmdLine = ConvertToWideChar(lptCmdLine);
- nRetVal = fnDllWinMainW(hWindow,hInstance,lpwCmdLine,nCmdShow);
+ fnDllWinMainW(hWindow,hInstance,lpwCmdLine,nCmdShow);
FreeConvertedWideChar(lpwCmdLine);
}
else if (fnDllWinMainA) {
// Convert the command-line string to ansi and call the dll function
lpaCmdLine = ConvertToMultiByte(lptCmdLine);
- nRetVal = fnDllWinMainA(hWindow,hInstance,lpaCmdLine,nCmdShow);
+ fnDllWinMainA(hWindow,hInstance,lpaCmdLine,nCmdShow);
FreeConvertedMultiByte(lpaCmdLine);
}
else {
}
if (argv) free(argv);
- return nRetVal;
+ return 0; /* rundll32 always returns 0! */
}