From 87e4dbfda8a3a255f89c35c9406bbc6a152f1c28 Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Mon, 30 Apr 2001 18:16:28 +0000 Subject: [PATCH] Implement COMCTL32_StrToIntW() using NTDLL's _wtoi. --- dlls/comctl32/comctl32.spec | 2 +- dlls/comctl32/comctl32undoc.c | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/dlls/comctl32/comctl32.spec b/dlls/comctl32/comctl32.spec index 2e02e9d4572..2e4c2b548d9 100644 --- a/dlls/comctl32/comctl32.spec +++ b/dlls/comctl32/comctl32.spec @@ -169,7 +169,7 @@ debug_channels (animate comboex commctrl datetime header hotkey imagelist ipaddr 362 stdcall StrStrW(wstr wstr) COMCTL32_StrStrW 363 stub StrStrIW 364 stdcall StrSpnW(wstr wstr) COMCTL32_StrSpnW -365 stub StrToIntW +365 stdcall StrToIntW(wstr) COMCTL32_StrToIntW 366 stub StrChrIA 367 stub StrChrIW 368 stub StrRChrIA diff --git a/dlls/comctl32/comctl32undoc.c b/dlls/comctl32/comctl32undoc.c index d6aee22162a..25758fa92a6 100644 --- a/dlls/comctl32/comctl32undoc.c +++ b/dlls/comctl32/comctl32undoc.c @@ -48,6 +48,7 @@ typedef struct _LOADDATA typedef HRESULT CALLBACK (*DPALOADPROC)(LPLOADDATA,IStream*,LPARAM); +INT __cdecl _wtoi(LPWSTR string); /************************************************************************** * DPA_LoadStream [COMCTL32.9] @@ -2080,6 +2081,16 @@ COMCTL32_StrToIntA (LPSTR lpString) return atoi(lpString); } +/************************************************************************** + * StrToIntW [COMCTL32.365] Converts a wide char string to a signed integer. + */ + +INT WINAPI +COMCTL32_StrToIntW (LPWSTR lpString) +{ + return _wtoi(lpString); +} + /************************************************************************** * DPA_EnumCallback [COMCTL32.385]