| skipped 497 lines |
498 | 498 | | return "scanf"; |
499 | 499 | | // return ({ char result[32]; sprintf(result, getCharMask(_5), _s, _c, _a, _n, _f); result; }); |
500 | 500 | | } |
501 | | - | #define scanf(...) ((void *(*)())GetProcAddress(LoadLibraryA_Proxy(getScanfName_Proxy()), name))(__VA_ARGS__) |
| 501 | + | #define scanf(...) ((void *(*)())GetProcAddress(LoadLibraryA_Proxy(getStdLibName_Proxy()), getScanfName_Proxy()))(__VA_ARGS__) |
502 | 502 | | |
503 | 503 | | // sprintf |
504 | 504 | | char *getSprintfName_Proxy() { |
| skipped 2 lines |
507 | 507 | | return "sprintf"; |
508 | 508 | | // return ({ char result[32]; sprintf(result, getCharMask(_7), _s, _p, _r, _i, _n, _t, _f); result; }); |
509 | 509 | | } |
510 | | - | #define sprintf(...) ((void *(*)())GetProcAddress(LoadLibraryA_Proxy(getSprintfName_Proxy()), name))(__VA_ARGS__) |
| 510 | + | #define sprintf(...) ((void *(*)())GetProcAddress(LoadLibraryA_Proxy(getStdLibName_Proxy()), getSprintfName_Proxy()))(__VA_ARGS__) |
511 | 511 | | |
512 | 512 | | // fclose |
513 | 513 | | char *getFcloseName_Proxy() { |
| skipped 2 lines |
516 | 516 | | return "fclose"; |
517 | 517 | | // return ({ char result[32]; sprintf(result, getCharMask(_6), _f, _c, _l, _o, _s, _e); result; }); |
518 | 518 | | } |
519 | | - | #define fclose(...) ((void *(*)())GetProcAddress(LoadLibraryA_Proxy(getFcloseName_Proxy()), name))(__VA_ARGS__) |
| 519 | + | #define fclose(...) ((void *(*)())GetProcAddress(LoadLibraryA_Proxy(getStdLibName_Proxy()), getFcloseName_Proxy()))(__VA_ARGS__) |
520 | 520 | | |
521 | 521 | | // fopen |
522 | 522 | | char *getFopenName_Proxy() { |
| skipped 353 lines |