2008-09-11 18:00 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)

* contrib/gtwvg/wvgutils.c
    ! HB_FUNC( WVT__MAKEDLGTEMPLATE )
         hb_retclen( ( LPSTR ) pdlgtemplate, ( ULONG ) ( p - pdlgtemplate ) );    =>         
         hb_retclen( ( LPSTR ) pdlgtemplate, ( ( ULONG ) p - ( ULONG ) pdlgtemplate ) ) ;
      Fix to open modeless/modal dialogs.
      ; NOTE: Need to be fixed in v1.0.0 also.
This commit is contained in:
Pritpal Bedi
2008-09-12 00:59:38 +00:00
parent c689833b5c
commit b5b40652bd
2 changed files with 10 additions and 1 deletions

View File

@@ -8,6 +8,14 @@
2008-12-31 13:59 UTC+0100 Foo Bar (foo.bar foobar.org)
*/
2008-09-11 18:00 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/gtwvg/wvgutils.c
! HB_FUNC( WVT__MAKEDLGTEMPLATE )
hb_retclen( ( LPSTR ) pdlgtemplate, ( ULONG ) ( p - pdlgtemplate ) ); =>
hb_retclen( ( LPSTR ) pdlgtemplate, ( ( ULONG ) p - ( ULONG ) pdlgtemplate ) ) ;
Fix to open modeless/modal dialogs.
; NOTE: Need to be fixed in v1.0.0 also.
2008-09-10 13:22 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* doc/whatsnew.txt
+ Updated.

View File

@@ -1288,7 +1288,7 @@ HB_FUNC( WVT__MAKEDLGTEMPLATE )
p = lpwAlign( p );
hb_retclen( ( LPSTR ) pdlgtemplate, ( ULONG ) ( p - pdlgtemplate ) );
hb_retclen( ( LPSTR ) pdlgtemplate, ( ( ULONG ) p - ( ULONG ) pdlgtemplate ) ) ;
LocalFree( LocalHandle( pdlgtemplate ) );
}
@@ -1301,6 +1301,7 @@ HB_FUNC( WVT__MAKEDLGTEMPLATE )
HB_EXPORT LPWORD lpwAlign( LPWORD lpIn )
{
HB_PTRDIFF ul = ( HB_PTRDIFF ) lpIn;
ul += 3;
ul >>=2;
ul <<=2;