--- mstools/samples/ddeml/client/infoctrl.c 2018/08/09 18:21:25 1.1.1.2 +++ mstools/samples/ddeml/client/infoctrl.c 2018/08/09 18:23:22 1.1.1.3 @@ -1,3 +1,14 @@ + +/******************************************************************************\ +* This is a part of the Microsoft Source Code Samples. +* Copyright (C) 1993 Microsoft Corporation. +* All rights reserved. +* This source code is only intended as a supplement to +* Microsoft Development Tools and/or WinHelp documentation. +* See these sources for detailed information regarding the +* Microsoft samples programs. +\******************************************************************************/ + /*************************************************************************** * * * MODULE : infoctrl.c * @@ -415,7 +426,7 @@ LPARAM lParam) picd = (INFOCTRL_DATA *)GetWindowLong(hwnd, GWL_INFODATA); ppsz = (PSTR *)&picd->pszUL + wParam; - if (lParam == NULL) + if (lParam == 0) lParam = (DWORD)(LPSTR)szNULL; if (*ppsz) { @@ -510,7 +521,7 @@ DoDWP: default: return (DefWindowProc(hwnd, msg, wParam, lParam)); } - return (NULL); + return (0); }