> Vim-for-Windows developers,
> 
> In the file if_ole.cpp, gcc generates a "passing NULL to non-pointer argument 
> 3" warning on line number 762:
> 
>     hr = RegisterActiveObject(
>       app,
>       MYCLSID,
>       NULL,             <-----
>       &app_id);
> 
> Microsoft docs say that the third argument must be either 
> "ACTIVEOBJECT_STRONG" or "ACTIVEOBJECT_WEAK".  Since ACTIVEOBJECT_STRONG is a 
> macro (in mingw) whose value is zero, I suspect that that is the intended 
> argument.  This suspicion is reinforced by a call to "RevokeActiveObject" in 
> if_ole.cpp which is necessary if STRONG has been specified.  
> 
> This is just my guess since I know very little about this Microsoft stuff.  

Looks right, it should be zero.

-- 
hundred-and-one symptoms of being an internet addict:
232. You start conversations with, "Have you gotten an ISDN line?"

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui