Ignore:
Timestamp:
Dec 22, 2001, 1:12:06 PM (24 years ago)
Author:
sandervl
Message:

FS protection for OSLibWinTranslateChar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/oslibwin.cpp

    r7500 r7669  
    1 /* $Id: oslibwin.cpp,v 1.110 2001-11-30 13:53:49 sandervl Exp $ */
     1/* $Id: oslibwin.cpp,v 1.111 2001-12-22 12:12:06 sandervl Exp $ */
    22/*
    33 * Window API wrappers for OS/2
     
    844844USHORT OSLibWinTranslateChar(USHORT usScanCode, ULONG type, USHORT shiftstate)
    845845{
    846   WinTranslateChar2(0, &usScanCode, NULL, type, &shiftstate);
     846  USHORT sel = GetFS();
     847  usScanCode = WinTranslateChar2(0, &usScanCode, NULL, type, &shiftstate);
     848  SetFS(sel);
    847849  return usScanCode;
    848850}
Note: See TracChangeset for help on using the changeset viewer.