Windows NT 4.0 source code leak
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

19 lines
356 B

#include "stdafx.h"
#ifndef _CSTR_INCLUDED
#include "cstr.h"
#endif
CStr::CStr(UINT id)
{
psz = (PSTR) lcMalloc(256);
if (LoadString(hinstApp, id, psz, 256) == 0) {
#ifdef _DEBUG
wsprintf(psz, "Cannot find string resource id %d.", id);
MessageBox(NULL, psz, "", MB_OK);
#endif
*psz = '\0';
}
else
psz = (PSTR) lcReAlloc(psz, strlen() + 1);
}