diff options
author | hobbs <hobbs> | 2008-01-31 23:31:00 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2008-01-31 23:31:00 (GMT) |
commit | 043e7d0bae5e3317bfc4d5de00888d820a25d439 (patch) | |
tree | 05378ae8d0c0753ea77889940d8e3994386c8845 /win | |
parent | 9073fa8758fc82b59031f9daec494200e7d7bf26 (diff) | |
download | tk-043e7d0bae5e3317bfc4d5de00888d820a25d439.zip tk-043e7d0bae5e3317bfc4d5de00888d820a25d439.tar.gz tk-043e7d0bae5e3317bfc4d5de00888d820a25d439.tar.bz2 |
* win/tkWinDialog.c (Tk_MessageBoxObjCmd): pass "" instead of NULL
when -title isn't set. [Bug #1881892]
Diffstat (limited to 'win')
-rw-r--r-- | win/tkWinDialog.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win/tkWinDialog.c b/win/tkWinDialog.c index 8635951..ec6ede9 100644 --- a/win/tkWinDialog.c +++ b/win/tkWinDialog.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkWinDialog.c,v 1.49 2007/12/13 15:28:55 dgp Exp $ + * RCS: @(#) $Id: tkWinDialog.c,v 1.50 2008/01/31 23:31:02 hobbs Exp $ * */ @@ -2202,7 +2202,7 @@ Tk_MessageBoxObjCmd( tsdPtr->hMsgBoxHook = SetWindowsHookEx(WH_CBT, MsgBoxCBTProc, NULL, GetCurrentThreadId()); winCode = MessageBoxW(hWnd, Tcl_GetUnicode(tmpObj), - titleObj ? Tcl_GetUnicode(titleObj) : NULL, flags); + titleObj ? Tcl_GetUnicode(titleObj) : L"", flags); UnhookWindowsHookEx(tsdPtr->hMsgBoxHook); (void) Tcl_SetServiceMode(oldMode); |