rundll32: Build with msvcrt.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
stable
Alexandre Julliard 2019-05-01 10:39:49 +02:00
parent 94700e8376
commit b09e18c40d
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,7 @@
MODULE = rundll32.exe
APPMODE = -mwindows -municode
IMPORTS = user32
EXTRADLLFLAGS = -mwindows -municode -mno-cygwin
C_SRCS = \
rundll32.c

View File

@ -37,7 +37,6 @@
#define WIN32_LEAN_AND_MEAN
#include "windows.h"
#include "wine/winbase16.h"
#include "wine/unicode.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(rundll32);
@ -123,7 +122,7 @@ static void *get_entry_point32( HMODULE module, LPCWSTR entry, BOOL *unicode )
/* determine if the entry point is an ordinal */
if (entry[0] == '#')
{
INT_PTR ordinal = atoiW( entry + 1 );
INT_PTR ordinal = wcstol( entry + 1, NULL, 10 );
if (ordinal <= 0)
return NULL;
@ -265,7 +264,7 @@ int WINAPI wWinMain(HINSTANCE instance, HINSTANCE hOldInstance, LPWSTR szCmdLine
if (!szDllName || *szDllName==0)
goto CLEANUP;
WINE_TRACE("DllName=%s\n",wine_dbgstr_w(szDllName));
if ((szEntryPoint = strchrW(szDllName, ',' )))
if ((szEntryPoint = wcschr(szDllName, ',' )))
*szEntryPoint++=0;
else
szEntryPoint = get_next_arg(&szCmdLine);