• unknown's avatar
    Bug#33748 my_getsystime, my_micro_time and my_micro_time_and_time broken on windows · 7db549a2
    unknown authored
     - Fix 'my_win_init' code that handles initialization of
       "query_performance_counter" and conversion from registry values to
       environment strings
    
    
    mysys/my_init.c:
      - Change check of return value from 'QueryPerformanceFrequency', it
        returns 0 on error
      - Don't return from 'my_win_init' if the registry 
        key "HKEY_LOCAL_MACHINE\SOFTWARE\MySQL" doesn't exist. This caused
        the initialization of "query_performance_counter" to be bypassed unless there
        was at lest such a key.
      - Cleanup the "registry -> environment variables" from Italian comments,
        remove redundant variables and fix style.
      - Remove function 'setEnvString' and replace it with oneliner 'strxmov'
    7db549a2
my_init.c 13.7 KB