VirtualBox

Changeset 70360 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Dec 27, 2017 4:57:22 PM (7 years ago)
Author:
vboxsync
Message:

iprt/vcc100-*-fakes.cpp: stupid stupid bug in API getter macro. unbelievable

Location:
trunk/src/VBox/Runtime/r3/win
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/win/vcc100-kernel32-fakes.cpp

    r70345 r70360  
    118118    static decltype(ApiNm) *s_pfnApi = NULL; \
    119119    decltype(ApiNm)        *pfnApi; \
    120     if (!s_fInitialized) \
     120    if (s_fInitialized) \
    121121        pfnApi = s_pfnApi; \
    122122    else \
     
    133133    static decltype(ApiNm) *s_pfn##ApiNm = NULL; \
    134134    decltype(ApiNm)        *pfn##ApiNm; \
    135     if (!s_fInitialized##ApiNm) \
     135    if (s_fInitialized##ApiNm) \
    136136        pfn##ApiNm = s_pfn##ApiNm; \
    137137    else \
  • trunk/src/VBox/Runtime/r3/win/vcc100-ntdll-fakes.cpp

    r69111 r70360  
    4545    static decltype(ApiNm) *s_pfnApi = NULL; \
    4646    decltype(ApiNm)        *pfnApi; \
    47     if (!s_fInitialized) \
     47    if (s_fInitialized) \
    4848        pfnApi = s_pfnApi; \
    4949    else \
  • trunk/src/VBox/Runtime/r3/win/vcc100-shell32-fakes.cpp

    r70345 r70360  
    5353    static decltype(ApiNm) *s_pfnApi = NULL; \
    5454    decltype(ApiNm)        *pfnApi; \
    55     if (!s_pfnInitialized) \
     55    if (s_pfnInitialized) \
    5656        pfnApi = s_pfnApi; \
    5757    else \
  • trunk/src/VBox/Runtime/r3/win/vcc100-ws2_32-fakes.cpp

    r69111 r70360  
    5353    static decltype(ApiNm) *s_pfnApi = NULL; \
    5454    decltype(ApiNm)        *pfnApi; \
    55     if (!s_fInitialized) \
     55    if (s_fInitialized) \
    5656        pfnApi = s_pfnApi; \
    5757    else \
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette