comparison src/if_ole.cpp @ 1791:5e225f973b5d v7.2.089

updated for version 7.2-089
author vimboss
date Wed, 28 Jan 2009 13:18:26 +0000
parents 9fbb40a1228a
children a0cce15dd2a9
comparison
equal deleted inserted replaced
1790:ef886129f0c0 1791:5e225f973b5d
351 vim_free(str); 351 vim_free(str);
352 return E_INVALIDARG; 352 return E_INVALIDARG;
353 } 353 }
354 354
355 /* Pass the string to the main input loop. The memory will be freed when 355 /* Pass the string to the main input loop. The memory will be freed when
356 * the message is processed. 356 * the message is processed. Except for an empty message, we don't need
357 * to post it then.
357 */ 358 */
358 PostMessage(NULL, WM_OLE, 0, (LPARAM)str); 359 if (*str == NUL)
360 vim_free(str);
361 else
362 PostMessage(NULL, WM_OLE, 0, (LPARAM)str);
359 363
360 return S_OK; 364 return S_OK;
361 } 365 }
362 366
363 STDMETHODIMP 367 STDMETHODIMP