mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 13:26:17 +00:00
- Removed redundant parsing of '#number' resource names. This is already handled by FindResourceEx.
svn path=/trunk/; revision=6566
This commit is contained in:
parent
e9e47f1fdb
commit
979687d01b
1 changed files with 1 additions and 12 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: static.c,v 1.8 2003/10/31 16:25:08 navaraf Exp $
|
||||
/* $Id: static.c,v 1.9 2003/11/07 21:02:41 navaraf Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS User32
|
||||
|
@ -256,17 +256,6 @@ static LRESULT CALLBACK StaticWndProcW( HWND hwnd, UINT uMsg, WPARAM wParam, LPA
|
|||
lParam = (LPARAM)(((LPCREATESTRUCTW)lParam)->lpszName);
|
||||
/* fall through */
|
||||
case WM_SETTEXT:
|
||||
if ((LPWSTR)lParam != NULL && ((LPWSTR)lParam)[0] == '#')
|
||||
{
|
||||
ULONG resource = 0, i;
|
||||
LPWSTR name = (LPWSTR)lParam;
|
||||
for (i = 1; name[i] != 0; ++i)
|
||||
{
|
||||
resource *= 10;
|
||||
resource += name[i] - '0';
|
||||
}
|
||||
name = (LPWSTR)resource;
|
||||
}
|
||||
switch (style) {
|
||||
case SS_ICON:
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue