Ignore:
Timestamp:
Feb 18, 2002, 11:07:00 PM (24 years ago)
Author:
phaller
Message:

Fixed SystemParametersInfo(SPI_GETNONCLIENTMETRICSA)

File:
1 edited

Legend:

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

    r7875 r7949  
    1 /* $Id: user32.cpp,v 1.121 2002-02-11 16:05:59 sandervl Exp $ */
     1/* $Id: user32.cpp,v 1.122 2002-02-18 22:07:00 phaller Exp $ */
    22
    33/*
     
    879879    switch(uiAction) {
    880880    case SPI_SETNONCLIENTMETRICS:
    881         clientMetricsA.cbSize = sizeof(NONCLIENTMETRICSA);
    882881        clientMetricsA.iBorderWidth = clientMetricsW->iBorderWidth;
    883882        clientMetricsA.iScrollWidth = clientMetricsW->iScrollWidth;
     
    896895        //no break
    897896    case SPI_GETNONCLIENTMETRICS:
     897        // Fix: set the structure size in any case (SET and GET!)
     898        clientMetricsA.cbSize = sizeof(NONCLIENTMETRICSA);
     899     
    898900        uiParamA = sizeof(NONCLIENTMETRICSA);
    899901        pvParamA = &clientMetricsA;
Note: See TracChangeset for help on using the changeset viewer.