diff --git a/tools/winebuild/main.c b/tools/winebuild/main.c index 70f381c7271..b2f5c959c42 100644 --- a/tools/winebuild/main.c +++ b/tools/winebuild/main.c @@ -164,7 +164,7 @@ static void init_dll_name( DLLSPEC *spec ) spec->dll_name = xstrdup( spec->file_name ); if ((p = strrchr( spec->dll_name, '.' ))) *p = 0; } - spec->c_name = make_c_identifier( spec->dll_name ); + if (spec->dll_name) spec->c_name = make_c_identifier( spec->dll_name ); } /* set the dll subsystem */