[ros-bugs] [Bug 2484] New: _tcschr (and others) don't work.

ReactOS.Bugzilla at www.reactos.org ReactOS.Bugzilla at www.reactos.org
Fri Jul 27 11:15:52 CEST 2007


http://www.reactos.org/bugzilla/show_bug.cgi?id=2484

           Summary: _tcschr (and others) don't work.
           Product: ReactOS
           Version: TRUNK
          Platform: x86 Hardware
        OS/Version: ReactOS
            Status: NEW
          Severity: major
          Priority: P3
         Component: Win32
        AssignedTo: ros-bugs at reactos.org
        ReportedBy: carlo.bramix at libero.it
         QAContact: ros-bugs at reactos.org


Look this simple programme:

#include <windows.h>
#include <stdio.h>
#include <string.h>
#include <tchar.h>

TCHAR data[] = TEXT("123.456");

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR
lpCmdLine, int nShowCmd)
{
    TCHAR str[256];
    TCHAR *ptr;

    ptr = _tcschr(data, TEXT('.'));
    _stprintf(str, TEXT("data=%x ptr=%x"), data, ptr);
    MessageBox(NULL, str, TEXT(""), MB_OK);
    return 0;
}

and compile it with MSVC and MINGW.
The executable made with MINGW works.
The executable made with MSVC doesn't work.
Here there is the results if I run these two executable into ReactOS:

MINGW: data=402000 ptr=402003

MSVC: data=414410 ptr=1

Of course, both exes work in Microsoft Windows.
If I disasseble the executables, different things had been made.
MINGW uses _strchr() function.
MSVC uses _tcschr() function.

So, _tcschr doesn't work in ROS.
This bug can be verified very easily.


-- 
Configure bugmail: http://www.reactos.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
You are the assignee for the bug, or are watching the assignee.


More information about the Ros-bugs mailing list