Alexandre Julliard : winebuild: Don' t set the IMAGE_FILE_DLL flag on native modules.
Alexandre Julliard
julliard at winehq.org
Tue Dec 11 11:37:21 CST 2007
Module: wine
Branch: master
Commit: b462c20876feae7b1384a50a8acfa5b376562bda
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b462c20876feae7b1384a50a8acfa5b376562bda
Author: Alexandre Julliard <julliard at winehq.org>
Date: Tue Dec 11 12:52:26 2007 +0100
winebuild: Don't set the IMAGE_FILE_DLL flag on native modules.
---
tools/winebuild/main.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/tools/winebuild/main.c b/tools/winebuild/main.c
index 5005fe1..3238b2a 100644
--- a/tools/winebuild/main.c
+++ b/tools/winebuild/main.c
@@ -594,7 +594,8 @@ int main(int argc, char **argv)
switch(exec_mode)
{
case MODE_DLL:
- spec->characteristics |= IMAGE_FILE_DLL;
+ if (spec->subsystem != IMAGE_SUBSYSTEM_NATIVE)
+ spec->characteristics |= IMAGE_FILE_DLL;
load_resources( argv, spec );
load_import_libs( argv );
if (!spec_file_name) fatal_error( "missing .spec file\n" );
More information about the wine-cvs
mailing list