* fixed compilation of win16 in medium memory model

git-svn-id: trunk@37697 -
This commit is contained in:
nickysn 2017-12-07 17:29:06 +00:00
parent 08062a2eb4
commit 9e6209db3a

View File

@ -249,7 +249,7 @@ begin
Writeln(debug_output,'Dos command line is #',CmdLine,'#');
{$EndIf}
{ find argv0len }
argv0len:=GetModuleFileName(hInstance,@argv0_arr,SizeOf(argv0_arr));
argv0len:=GetModuleFileName(hInstance,FarAddr(argv0_arr),SizeOf(argv0_arr));
{$IfDef SYSTEM_DEBUG_STARTUP}
Writeln(debug_output,'arv0 is #',argv0_arr,'# len=', argv0len);
{$EndIf}